{"id":40872587,"url":"https://github.com/acebot712/llm_training","last_synced_at":"2026-01-22T00:42:02.917Z","repository":{"id":248114265,"uuid":"827796578","full_name":"acebot712/llm_training","owner":"acebot712","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-11T02:18:48.000Z","size":95,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-11T03:26:52.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/acebot712.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2024-07-12T11:50:07.000Z","updated_at":"2025-05-11T02:38:17.000Z","dependencies_parsed_at":"2024-07-24T15:07:01.991Z","dependency_job_id":"ca78cd2a-03c4-4188-a2ce-64bf776c23b8","html_url":"https://github.com/acebot712/llm_training","commit_stats":null,"previous_names":["acebot712/llm_training"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/acebot712/llm_training","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acebot712%2Fllm_training","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acebot712%2Fllm_training/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acebot712%2Fllm_training/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acebot712%2Fllm_training/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acebot712","download_url":"https://codeload.github.com/acebot712/llm_training/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acebot712%2Fllm_training/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28648460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-22T00:42:02.318Z","updated_at":"2026-01-22T00:42:02.912Z","avatar_url":"https://github.com/acebot712.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLM Training (Refactored)\n\nThis repository provides a modular, extensible framework for data preparation, fine-tuning, evaluation, and compression of large language models (LLMs).\n\n## Key Features\n- Modular Python package: `llm_training`\n- Unified CLI: `llm-train` for data prep, training, and evaluation\n- Configuration via JSON/YAML files with OmegaConf\n- Support for tensorized model compression (Llama, Mixtral)\n- Integrated WandB logging for experiment tracking\n- Unit tests with pytest\n- MIT licensed with community guidelines\n\n## Quickstart\n\n1. **Install dependencies:**\n   ```sh\n   pip install -e .\n   ```\n2. **Run data preparation:**\n   ```sh\n   llm-train data-prep --config configs/data_prep_config.json\n   ```\n3. **Fine-tune a model:**\n   ```sh\n   llm-train train --config configs/sft_config.json\n   ```\n4. **Evaluate a model:**\n   ```sh\n   llm-train eval --config configs/evaluate_config.json\n   ```\n\nFor model compression, see the scripts in `scripts/compression/`.\n\n## Configuration\nAll workflows are configured via JSON or YAML files using OmegaConf. See `configs/` for examples. The config files specify model paths, hyperparameters, dataset paths, and training arguments.\n\n### Example Configs\n- `data_prep_config.json` - Dataset preparation configuration\n- `sft_config.json` - Supervised fine-tuning parameters\n- `evaluate_config.json` - Evaluation benchmark settings\n- `accelerate_config.yaml` - Multi-GPU training with Accelerate\n\n## Project Structure\n- `llm_training/` - Main Python package with core functionality\n- `scripts/` - Standalone scripts for data prep and compression workflows\n- `configs/` - Configuration files for different workflows\n- `tests/` - Unit tests\n\n## Testing\nRun all tests with:\n```sh\npytest\n```\n\n## Docker\nBuild and run in a reproducible environment:\n```sh\ndocker build -t llm_training .\ndocker run -it llm_training\n```\n\n## Contributing\nSee `CONTRIBUTING.md` for guidelines. All contributions and issues are welcome!\n\n## Changelog\nSee `CHANGELOG.md` for release history.\n\n## Citation\n\nIf you find this work useful, please cite it as follows:\n```bibtex\n@misc{sarkar2024llmtraining,\n  author = {Abhijoy Sarkar},\n  title = {LLM Training: A Modular Framework for Fine-tuning Large Language Models},\n  year = {2024},\n  publisher = {GitHub},\n  journal = {GitHub Repository},\n  howpublished = {\\url{https://github.com/acebot712/llm_training}},\n}\n```\n\n## Contact\n[![Contact me on Codementor](https://www.codementor.io/m-badges/abhijoysarkar/find-me-on-cm-b.svg)](https://www.codementor.io/@abhijoysarkar?refer=badge)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facebot712%2Fllm_training","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facebot712%2Fllm_training","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facebot712%2Fllm_training/lists"}