{"id":28373935,"url":"https://github.com/sean-doody/modernbert-classification-example","last_synced_at":"2025-08-11T02:04:45.698Z","repository":{"id":272996256,"uuid":"918414955","full_name":"sean-doody/modernbert-classification-example","owner":"sean-doody","description":"An example workflow for fine-tuning ModernBERT for a classification task using the IMDB dataset.","archived":false,"fork":false,"pushed_at":"2025-01-17T22:21:17.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T18:46:01.309Z","etag":null,"topics":["classification","encoder-model","huggingface","modernbert","nlp","transformers"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sean-doody.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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":"2025-01-17T22:10:57.000Z","updated_at":"2025-01-17T22:22:17.000Z","dependencies_parsed_at":"2025-01-17T23:36:58.871Z","dependency_job_id":null,"html_url":"https://github.com/sean-doody/modernbert-classification-example","commit_stats":null,"previous_names":["sean-doody/modernbert-classification-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sean-doody/modernbert-classification-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sean-doody%2Fmodernbert-classification-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sean-doody%2Fmodernbert-classification-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sean-doody%2Fmodernbert-classification-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sean-doody%2Fmodernbert-classification-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sean-doody","download_url":"https://codeload.github.com/sean-doody/modernbert-classification-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sean-doody%2Fmodernbert-classification-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269819032,"owners_count":24480087,"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-08-11T02:00:10.019Z","response_time":75,"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"}},"keywords":["classification","encoder-model","huggingface","modernbert","nlp","transformers"],"created_at":"2025-05-29T20:37:58.613Z","updated_at":"2025-08-11T02:04:45.626Z","avatar_url":"https://github.com/sean-doody.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ModernBERT Fine-Tune: IMDB Example\n\nThis notebook contains a recipe for fine-tuning [ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base) for a binary classification task. The [IMDB reviews dataset](https://huggingface.co/datasets/stanfordnlp/imdb) is used as a toy example, but the code can adapted for other workflows.\n\n## Running the Code\n\n- The notebook can be run on free-tier [Google Colab](https://colab.research.google.com) runtimes.\n- I used a batch size of 4 and an eval batch size of 2 on a free T4 GPU runtime.\n- While ModernBERT supports up to 8192 tokens, I kept this example to 1024 tokens. \n  - I wanted to test the performance of the model using a moderately sized max length.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsean-doody%2Fmodernbert-classification-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsean-doody%2Fmodernbert-classification-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsean-doody%2Fmodernbert-classification-example/lists"}