{"id":24828,"name":"knn-transformers","description":"PyTorch + HuggingFace code for RetoMaton: \"Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval\" (ICML 2022), including an implementation of kNN-LM and kNN-MT","url":"https://github.com/neulab/knn-transformers","last_synced_at":"2025-09-05T02:30:10.417Z","repository":{"id":45662868,"uuid":"511270617","full_name":"neulab/knn-transformers","owner":"neulab","description":"PyTorch + HuggingFace code for RetoMaton: \"Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval\" (ICML 2022), including an implementation of kNN-LM and kNN-MT","archived":false,"fork":false,"pushed_at":"2022-10-20T14:34:50.000Z","size":1696,"stargazers_count":271,"open_issues_count":7,"forks_count":24,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T09:26:39.432Z","etag":null,"topics":["huggingface","knn","knn-lm","knn-mt","knn-transformers","knnlm","knnmt","language","language-models","machine","models","nearest","nearest-neighbor","neighbor","neuro-symbolic","pytorch","retomaton","transformers","translation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neulab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-06T19:41:53.000Z","updated_at":"2025-04-03T00:58:50.000Z","dependencies_parsed_at":"2023-01-20T16:00:57.562Z","dependency_job_id":null,"html_url":"https://github.com/neulab/knn-transformers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/neulab/knn-transformers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neulab%2Fknn-transformers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neulab%2Fknn-transformers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neulab%2Fknn-transformers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neulab%2Fknn-transformers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neulab","download_url":"https://codeload.github.com/neulab/knn-transformers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neulab%2Fknn-transformers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273701265,"owners_count":25152625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"owner":{"login":"neulab","name":"NeuLab","uuid":"22324665","kind":"organization","description":"Graham Neubig's Lab at LTI/CMU","email":null,"website":"http://www.cs.cmu.edu/~neulab/","location":"Pittsburgh, PA","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/22324665?v=4","repositories_count":58,"last_synced_at":"2024-05-11T05:49:34.410Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/neulab","funding_links":[],"total_stars":6660,"followers":189,"following":0,"created_at":"2022-11-14T20:04:35.694Z","updated_at":"2024-05-11T05:49:51.389Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neulab","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neulab/repositories"},"packages":[],"commits":{"id":4413715,"full_name":"neulab/knn-transformers","default_branch":"master","committers":[{"name":"urialon","email":"urialon1@gmail.com","login":"urialon","count":32}],"total_commits":32,"total_committers":1,"total_bot_commits":0,"total_bot_committers":0,"mean_commits":32.0,"dds":0.0,"past_year_committers":[],"past_year_total_commits":0,"past_year_total_committers":0,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":0.0,"past_year_dds":0.0,"last_synced_at":"2025-03-24T08:07:14.734Z","last_synced_commit":"5b370d2e970713be3fcea31ee2045e75896ef936","created_at":"2024-11-07T20:17:11.421Z","updated_at":"2025-03-24T08:07:14.734Z","commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/neulab%2Fknn-transformers/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2025-09-05T00:00:10.343Z","repositories_count":5480019,"commits_count":853389012,"contributors_count":31098138,"owners_count":906558,"icon_url":"https://github.com/github.png","host_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories"}},"issues_stats":{"full_name":"neulab/knn-transformers","html_url":"https://github.com/neulab/knn-transformers","last_synced_at":"2025-04-03T02:11:06.430Z","status":null,"issues_count":16,"pull_requests_count":3,"avg_time_to_close_issue":1660280.5454545454,"avg_time_to_close_pull_request":10.0,"issues_closed_count":11,"pull_requests_closed_count":1,"pull_request_authors_count":3,"issue_authors_count":10,"avg_comments_per_issue":4.0,"avg_comments_per_pull_request":0.3333333333333333,"merged_pull_requests_count":1,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":5,"past_year_pull_requests_count":1,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":3,"past_year_avg_comments_per_issue":3.0,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"created_at":"2024-11-07T20:17:11.615Z","updated_at":"2025-09-03T01:44:26.624Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/neulab%2Fknn-transformers","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/neulab%2Fknn-transformers/issues","issue_labels_count":{},"pull_request_labels_count":{},"issue_author_associations_count":{"NONE":15},"pull_request_author_associations_count":{"NONE":3,"COLLABORATOR":1},"issue_authors":{"HossamAmer12":3,"YsylviaUC":2,"Jing-L97":2,"xszheng2020":2,"Binn0":1,"volkerha":1,"lihe27341":1,"FYYFU":1,"Maxwell-Lyu":1,"vhientran":1},"pull_request_authors":{"dioloib":2,"urialon":1,"AK391":1},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2025-09-05T00:00:10.444Z","repositories_count":10083752,"issues_count":31254324,"pull_requests_count":96222393,"authors_count":10694625,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{"NONE":5},"past_year_pull_request_author_associations_count":{"NONE":2},"past_year_issue_authors":{"HossamAmer12":3,"Binn0":1,"lihe27341":1},"past_year_pull_request_authors":{"dioloib":2},"maintainers":[{"login":"urialon","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/urialon"}],"active_maintainers":[]},"events":{"total":{"IssuesEvent":4,"WatchEvent":8,"IssueCommentEvent":16,"PullRequestEvent":3,"ForkEvent":4},"last_year":{"IssuesEvent":4,"WatchEvent":8,"IssueCommentEvent":16,"PullRequestEvent":3,"ForkEvent":4}},"keywords":["huggingface","knn","knn-lm","knn-mt","knn-transformers","knnlm","knnmt","language","language-models","machine","models","nearest","nearest-neighbor","neighbor","neuro-symbolic","pytorch","retomaton","transformers","translation"],"dependencies":[{"ecosystem":"pypi","filepath":"requirements.txt","sha":null,"kind":"manifest","created_at":"2022-08-12T12:00:20.623Z","updated_at":"2022-08-12T12:00:20.623Z","repository_link":"https://github.com/neulab/knn-transformers/blob/master/requirements.txt","dependencies":[{"id":1323149216,"package_name":"torch","ecosystem":"pypi","requirements":"\u003e=1.9.0","direct":true,"kind":"runtime","optional":false},{"id":1323149217,"package_name":"transformers","ecosystem":"pypi","requirements":"*","direct":true,"kind":"runtime","optional":false},{"id":1323149218,"package_name":"datasets","ecosystem":"pypi","requirements":"*","direct":true,"kind":"runtime","optional":false},{"id":1323149219,"package_name":"tqdm","ecosystem":"pypi","requirements":"*","direct":true,"kind":"runtime","optional":false},{"id":1323149220,"package_name":"scipy","ecosystem":"pypi","requirements":"*","direct":true,"kind":"runtime","optional":false},{"id":1323149221,"package_name":"faiss-gpu","ecosystem":"pypi","requirements":"==1.7.2","direct":true,"kind":"runtime","optional":false}]}],"score":5.627621113690637,"created_at":"2025-09-04T15:50:56.717Z","updated_at":"2025-10-07T08:11:23.613Z","avatar_url":"https://github.com/neulab.png","language":"Python","category":null,"sub_category":null,"monthly_downloads":0,"funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":[],"project_url":"https://science.ecosyste.ms/api/v1/projects/24828","html_url":"https://science.ecosyste.ms/projects/24828","bibtex_url":"https://science.ecosyste.ms/projects/24828/export.bibtex","apalike_url":"https://science.ecosyste.ms/projects/24828/export.apalike"}