{"id":20601967,"url":"https://github.com/bessouat40/custom-phi2-use","last_synced_at":"2026-04-17T23:06:18.597Z","repository":{"id":228196302,"uuid":"720481003","full_name":"Bessouat40/custom-phi2-use","owner":"Bessouat40","description":"Use of phi2 for custom use.","archived":false,"fork":false,"pushed_at":"2024-07-26T08:17:31.000Z","size":143,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T01:48:45.621Z","etag":null,"topics":["generative-ai","llm","phi2","prompt-engineering","recipe-app"],"latest_commit_sha":null,"homepage":"","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/Bessouat40.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":"2023-11-18T16:09:35.000Z","updated_at":"2024-07-26T08:17:34.000Z","dependencies_parsed_at":"2024-03-17T15:28:30.200Z","dependency_job_id":"a4bd8614-b8a6-4433-8550-f11524235107","html_url":"https://github.com/Bessouat40/custom-phi2-use","commit_stats":null,"previous_names":["bessouat40/custom-phi2-use"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bessouat40%2Fcustom-phi2-use","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bessouat40%2Fcustom-phi2-use/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bessouat40%2Fcustom-phi2-use/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bessouat40%2Fcustom-phi2-use/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bessouat40","download_url":"https://codeload.github.com/Bessouat40/custom-phi2-use/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242241246,"owners_count":20095339,"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","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":["generative-ai","llm","phi2","prompt-engineering","recipe-app"],"created_at":"2024-11-16T09:12:33.889Z","updated_at":"2026-04-17T23:06:13.576Z","avatar_url":"https://github.com/Bessouat40.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom phi2 use\n\nCustom use of Phi2 model wich is an open source LLM.\nWe use 2B version.\n\n## Objectives\n\n- POC : use Phi2 model and prove it's sufficient for our use (tips for creating dishes from various ingredients)\n- Model quantization for performances improvement\n- Offline use with acceptables performances\n\n## Requirements\n\nYou need to install right `transformers` version :\n\n```bash\npython -m pip install git+https://github.com/huggingface/transformers\n```\n\n## Usage\n\n### Launch POC\n\n```bash\npython main.py\n```\n\n#### Results\n\n![poc-result](./media/custom_prompt.png)\n\n### TODO\n\n- [x] First Phi-2 use\n- [x] Try custom prompt\n- [ ] Improve prompt\n- [ ] Offline use\n- [ ] Model quantization\n\n## Resources\n\n- [HuggingFace documentation](https://huggingface.co/microsoft/phi-2)\n- [LLM courses](https://github.com/mlabonne/llm-course)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbessouat40%2Fcustom-phi2-use","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbessouat40%2Fcustom-phi2-use","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbessouat40%2Fcustom-phi2-use/lists"}