{"id":106625,"name":null,"description":"Enhancing contextual understanding in large language models through contrastive decoding","url":"https://github.com/amazon-science/contextualunderstanding-contrastivedecoding","last_synced_at":"2025-09-09T04:40:30.049Z","repository":{"id":237980172,"uuid":"795587539","full_name":"amazon-science/ContextualUnderstanding-ContrastiveDecoding","owner":"amazon-science","description":"Enhancing contextual understanding in large language models through contrastive decoding","archived":false,"fork":false,"pushed_at":"2024-05-03T16:08:51.000Z","size":52,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T09:05:14.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amazon-science.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-03T15:47:07.000Z","updated_at":"2025-03-19T09:51:07.000Z","dependencies_parsed_at":"2024-05-03T19:26:20.465Z","dependency_job_id":"6505294b-984b-460b-9775-5406443ceb03","html_url":"https://github.com/amazon-science/ContextualUnderstanding-ContrastiveDecoding","commit_stats":null,"previous_names":["amazon-science/contextualunderstanding-contrastivedecoding"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amazon-science/ContextualUnderstanding-ContrastiveDecoding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2FContextualUnderstanding-ContrastiveDecoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2FContextualUnderstanding-ContrastiveDecoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2FContextualUnderstanding-ContrastiveDecoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2FContextualUnderstanding-ContrastiveDecoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amazon-science","download_url":"https://codeload.github.com/amazon-science/ContextualUnderstanding-ContrastiveDecoding/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2FContextualUnderstanding-ContrastiveDecoding/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274244216,"owners_count":25248157,"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-09T02:00:10.223Z","response_time":80,"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":"amazon-science","name":"Amazon Science","uuid":"70298811","kind":"organization","description":"","email":null,"website":"https://amazon.science","location":null,"twitter":"AmazonScience","company":null,"icon_url":"https://avatars.githubusercontent.com/u/70298811?v=4","repositories_count":80,"last_synced_at":"2023-03-11T11:51:04.161Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/amazon-science","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2023-02-15T02:42:01.238Z","updated_at":"2023-03-11T11:51:04.185Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amazon-science","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amazon-science/repositories"},"packages":[],"commits":{"id":5387496,"full_name":"amazon-science/contextualunderstanding-contrastivedecoding","default_branch":"master","committers":null,"total_commits":null,"total_committers":null,"total_bot_commits":null,"total_bot_committers":null,"mean_commits":null,"dds":null,"past_year_committers":null,"past_year_total_commits":null,"past_year_total_committers":null,"past_year_total_bot_commits":null,"past_year_total_bot_committers":null,"past_year_mean_commits":null,"past_year_dds":null,"last_synced_at":null,"last_synced_commit":null,"created_at":"2024-11-12T23:09:01.326Z","updated_at":"2024-11-12T23:09:01.326Z","commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2Fcontextualunderstanding-contrastivedecoding/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2025-09-09T00:17:06.873Z","repositories_count":5505610,"commits_count":857644976,"contributors_count":31373693,"owners_count":914464,"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":"amazon-science/contextualunderstanding-contrastivedecoding","html_url":"https://github.com/amazon-science/contextualunderstanding-contrastivedecoding","last_synced_at":"2025-01-12T01:34:08.413Z","status":null,"issues_count":1,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":1,"avg_comments_per_issue":0.0,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":1,"past_year_pull_requests_count":0,"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":0,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":0.0,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"created_at":"2024-11-12T23:09:01.677Z","updated_at":"2025-09-01T20:39:35.697Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2Fcontextualunderstanding-contrastivedecoding","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazon-science%2Fcontextualunderstanding-contrastivedecoding/issues","issue_labels_count":{},"pull_request_labels_count":{},"issue_author_associations_count":{"NONE":2},"pull_request_author_associations_count":{},"issue_authors":{"fan2goa1":1,"lgduu":1},"pull_request_authors":{},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2025-09-05T00:00:10.444Z","repositories_count":10082364,"issues_count":31225876,"pull_requests_count":96082853,"authors_count":10694162,"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":1},"past_year_pull_request_author_associations_count":{},"past_year_issue_authors":{"lgduu":1},"past_year_pull_request_authors":{},"maintainers":[],"active_maintainers":[]},"events":{"total":{"IssuesEvent":1,"WatchEvent":4,"ForkEvent":2},"last_year":{"IssuesEvent":1,"WatchEvent":4,"ForkEvent":2}},"keywords":[],"dependencies":[{"ecosystem":"pypi","filepath":"environment.yml","sha":null,"kind":"manifest","created_at":"2024-05-03T19:26:05.280Z","updated_at":"2024-05-03T19:26:05.280Z","repository_link":"https://github.com/amazon-science/ContextualUnderstanding-ContrastiveDecoding/blob/main/environment.yml","dependencies":[{"id":17885967319,"package_name":"absl-py","ecosystem":"pypi","requirements":"==2.0.0","direct":true,"kind":"runtime","optional":false},{"id":17885967320,"package_name":"accelerate","ecosystem":"pypi","requirements":"==0.23.0","direct":true,"kind":"runtime","optional":false},{"id":17885967321,"package_name":"aiohttp","ecosystem":"pypi","requirements":"==3.8.5","direct":true,"kind":"runtime","optional":false},{"id":17885967322,"package_name":"aiosignal","ecosystem":"pypi","requirements":"==1.3.1","direct":true,"kind":"runtime","optional":false},{"id":17885967323,"package_name":"aniso8601","ecosystem":"pypi","requirements":"==9.0.1","direct":true,"kind":"runtime","optional":false},{"id":17885967324,"package_name":"ansi2html","ecosystem":"pypi","requirements":"==1.8.0","direct":true,"kind":"runtime","optional":false},{"id":17885967325,"package_name":"async-timeout","ecosystem":"pypi","requirements":"==4.0.3","direct":true,"kind":"runtime","optional":false},{"id":17885967326,"package_name":"blinker","ecosystem":"pypi","requirements":"==1.6.2","direct":true,"kind":"runtime","optional":false},{"id":17885967327,"package_name":"click","ecosystem":"pypi","requirements":"==8.1.7","direct":true,"kind":"runtime","optional":false},{"id":17885967328,"package_name":"cloudpickle","ecosystem":"pypi","requirements":"==2.2.1","direct":true,"kind":"runtime","optional":false},{"id":17885967329,"package_name":"coloredlogs","ecosystem":"pypi","requirements":"==15.0.1","direct":true,"kind":"runtime","optional":false},{"id":17885967330,"package_name":"contextlib2","ecosystem":"pypi","requirements":"==21.6.0","direct":true,"kind":"runtime","optional":false},{"id":17885967331,"package_name":"datasets","ecosystem":"pypi","requirements":"==2.14.5","direct":true,"kind":"runtime","optional":false},{"id":17885967332,"package_name":"dill","ecosystem":"pypi","requirements":"==0.3.7","direct":true,"kind":"runtime","optional":false},{"id":17885967333,"package_name":"dparse","ecosystem":"pypi","requirements":"==0.6.3","direct":true,"kind":"runtime","optional":false},{"id":17885967334,"package_name":"einops","ecosystem":"pypi","requirements":"==0.7.0rc2","direct":true,"kind":"runtime","optional":false},{"id":17885967335,"package_name":"flash-attn","ecosystem":"pypi","requirements":"==2.3.0","direct":true,"kind":"runtime","optional":false},{"id":17885967522,"package_name":"flask","ecosystem":"pypi","requirements":"==2.3.3","direct":true,"kind":"runtime","optional":false},{"id":17885967523,"package_name":"flask-restful","ecosystem":"pypi","requirements":"==0.3.10","direct":true,"kind":"runtime","optional":false},{"id":17885968181,"package_name":"frozenlist","ecosystem":"pypi","requirements":"==1.4.0","direct":true,"kind":"runtime","optional":false},{"id":17885968185,"package_name":"fsspec","ecosystem":"pypi","requirements":"==2023.6.0","direct":true,"kind":"runtime","optional":false},{"id":17885968187,"package_name":"google-pasta","ecosystem":"pypi","requirements":"==0.2.0","direct":true,"kind":"runtime","optional":false},{"id":17885968190,"package_name":"gym","ecosystem":"pypi","requirements":"==0.26.2","direct":true,"kind":"runtime","optional":false},{"id":17885968192,"package_name":"gym-notices","ecosystem":"pypi","requirements":"==0.0.8","direct":true,"kind":"runtime","optional":false},{"id":17885968195,"package_name":"horovod","ecosystem":"pypi","requirements":"==0.28.1","direct":true,"kind":"runtime","optional":false},{"id":17885969170,"package_name":"huggingface-hub","ecosystem":"pypi","requirements":"==0.16.4","direct":true,"kind":"runtime","optional":false},{"id":17885969171,"package_name":"humanfriendly","ecosystem":"pypi","requirements":"==10.0","direct":true,"kind":"runtime","optional":false},{"id":17885969172,"package_name":"itsdangerous","ecosystem":"pypi","requirements":"==2.1.2","direct":true,"kind":"runtime","optional":false},{"id":17885969173,"package_name":"joblib","ecosystem":"pypi","requirements":"==1.3.2","direct":true,"kind":"runtime","optional":false},{"id":17885969174,"package_name":"jsonlines","ecosystem":"pypi","requirements":"==4.0.0","direct":true,"kind":"runtime","optional":false},{"id":17885969175,"package_name":"llvmlite","ecosystem":"pypi","requirements":"==0.40.1","direct":true,"kind":"runtime","optional":false},{"id":17885969176,"package_name":"metrics","ecosystem":"pypi","requirements":"==0.3.3","direct":true,"kind":"runtime","optional":false},{"id":17885969234,"package_name":"multidict","ecosystem":"pypi","requirements":"==6.0.4","direct":true,"kind":"runtime","optional":false},{"id":17885969235,"package_name":"multiprocess","ecosystem":"pypi","requirements":"==0.70.15","direct":true,"kind":"runtime","optional":false},{"id":17885969236,"package_name":"ninja","ecosystem":"pypi","requirements":"==1.11.1","direct":true,"kind":"runtime","optional":false},{"id":17885969237,"package_name":"nltk","ecosystem":"pypi","requirements":"==3.8.1","direct":true,"kind":"runtime","optional":false},{"id":17885969238,"package_name":"numba","ecosystem":"pypi","requirements":"==0.57.1","direct":true,"kind":"runtime","optional":false},{"id":17885969239,"package_name":"numpy","ecosystem":"pypi","requirements":"==1.24.4","direct":true,"kind":"runtime","optional":false},{"id":17885969240,"package_name":"nvgpu","ecosystem":"pypi","requirements":"==0.10.0","direct":true,"kind":"runtime","optional":false},{"id":17885969944,"package_name":"openai","ecosystem":"pypi","requirements":"==0.28.0","direct":true,"kind":"runtime","optional":false},{"id":17885969945,"package_name":"optimum","ecosystem":"pypi","requirements":"==1.13.2","direct":true,"kind":"runtime","optional":false},{"id":17885969946,"package_name":"packaging","ecosystem":"pypi","requirements":"==21.3","direct":true,"kind":"runtime","optional":false},{"id":17885969947,"package_name":"pathlib2","ecosystem":"pypi","requirements":"==2.3.7.post1","direct":true,"kind":"runtime","optional":false},{"id":17885969948,"package_name":"pathos","ecosystem":"pypi","requirements":"==0.3.1","direct":true,"kind":"runtime","optional":false},{"id":17885970240,"package_name":"pathspec","ecosystem":"pypi","requirements":"==0.5.5","direct":true,"kind":"runtime","optional":false},{"id":17885970241,"package_name":"pillow","ecosystem":"pypi","requirements":"==10.0.0","direct":true,"kind":"runtime","optional":false},{"id":17885970242,"package_name":"pox","ecosystem":"pypi","requirements":"==0.3.3","direct":true,"kind":"runtime","optional":false},{"id":17885970866,"package_name":"ppft","ecosystem":"pypi","requirements":"==1.7.6.7","direct":true,"kind":"runtime","optional":false},{"id":17885971346,"package_name":"protobuf","ecosystem":"pypi","requirements":"==4.24.2","direct":true,"kind":"runtime","optional":false},{"id":17885971347,"package_name":"pyarrow","ecosystem":"pypi","requirements":"==13.0.0","direct":true,"kind":"runtime","optional":false},{"id":17885971348,"package_name":"pyfunctional","ecosystem":"pypi","requirements":"==1.4.3","direct":true,"kind":"runtime","optional":false},{"id":17885971613,"package_name":"pygame","ecosystem":"pypi","requirements":"==2.5.1","direct":true,"kind":"runtime","optional":false},{"id":17885971614,"package_name":"pygments","ecosystem":"pypi","requirements":"==2.2.0","direct":true,"kind":"runtime","optional":false},{"id":17885971615,"package_name":"pynvml","ecosystem":"pypi","requirements":"==11.5.0","direct":true,"kind":"runtime","optional":false},{"id":17885971616,"package_name":"regex","ecosystem":"pypi","requirements":"==2023.8.8","direct":true,"kind":"runtime","optional":false},{"id":17885971617,"package_name":"rouge-score","ecosystem":"pypi","requirements":"==0.1.2","direct":true,"kind":"runtime","optional":false},{"id":17885971618,"package_name":"ruamel-yaml","ecosystem":"pypi","requirements":"==0.17.32","direct":true,"kind":"runtime","optional":false},{"id":17885971619,"package_name":"ruamel-yaml-clib","ecosystem":"pypi","requirements":"==0.2.7","direct":true,"kind":"runtime","optional":false},{"id":17885971620,"package_name":"s3fs","ecosystem":"pypi","requirements":"==0.4.2","direct":true,"kind":"runtime","optional":false},{"id":17885971621,"package_name":"safetensors","ecosystem":"pypi","requirements":"==0.3.3","direct":true,"kind":"runtime","optional":false},{"id":17885971622,"package_name":"sagemaker","ecosystem":"pypi","requirements":"==2.180.0","direct":true,"kind":"runtime","optional":false},{"id":17885971699,"package_name":"schema","ecosystem":"pypi","requirements":"==0.7.5","direct":true,"kind":"runtime","optional":false},{"id":17885971713,"package_name":"scikit-learn","ecosystem":"pypi","requirements":"==1.3.0","direct":true,"kind":"runtime","optional":false},{"id":17885971714,"package_name":"sentencepiece","ecosystem":"pypi","requirements":"==0.1.99","direct":true,"kind":"runtime","optional":false},{"id":17885971715,"package_name":"shap","ecosystem":"pypi","requirements":"==0.42.1","direct":true,"kind":"runtime","optional":false},{"id":17885971716,"package_name":"slicer","ecosystem":"pypi","requirements":"==0.0.7","direct":true,"kind":"runtime","optional":false},{"id":17885971717,"package_name":"smclarify","ecosystem":"pypi","requirements":"==0.5","direct":true,"kind":"runtime","optional":false},{"id":17885971718,"package_name":"smdebug-rulesconfig","ecosystem":"pypi","requirements":"==1.0.1","direct":true,"kind":"runtime","optional":false},{"id":17885972164,"package_name":"tabulate","ecosystem":"pypi","requirements":"==0.9.0","direct":true,"kind":"runtime","optional":false},{"id":17885972165,"package_name":"tblib","ecosystem":"pypi","requirements":"==1.7.0","direct":true,"kind":"runtime","optional":false},{"id":17885972166,"package_name":"termcolor","ecosystem":"pypi","requirements":"==2.3.0","direct":true,"kind":"runtime","optional":false},{"id":17885972167,"package_name":"threadpoolctl","ecosystem":"pypi","requirements":"==3.2.0","direct":true,"kind":"runtime","optional":false},{"id":17885972168,"package_name":"tokenizers","ecosystem":"pypi","requirements":"==0.14.0","direct":true,"kind":"runtime","optional":false},{"id":17885972169,"package_name":"transformers","ecosystem":"pypi","requirements":"==4.34.0.dev0","direct":true,"kind":"runtime","optional":false},{"id":17885972170,"package_name":"werkzeug","ecosystem":"pypi","requirements":"==2.3.7","direct":true,"kind":"runtime","optional":false},{"id":17885972171,"package_name":"xxhash","ecosystem":"pypi","requirements":"==3.3.0","direct":true,"kind":"runtime","optional":false},{"id":17885972172,"package_name":"yarl","ecosystem":"pypi","requirements":"==1.9.2","direct":true,"kind":"runtime","optional":false}]}],"score":null,"created_at":"2025-09-08T22:27:27.509Z","updated_at":"2025-10-07T08:31:51.647Z","avatar_url":"https://github.com/amazon-science.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/106625","html_url":"https://science.ecosyste.ms/projects/106625"}