{"id":25511302,"url":"https://github.com/francescodisalesgithub/few-shots-importer","last_synced_at":"2025-08-07T07:04:21.884Z","repository":{"id":277855088,"uuid":"929334862","full_name":"FrancescoDiSalesGithub/few-shots-importer","owner":"FrancescoDiSalesGithub","description":"sft training by using only command instruction on a ollama modelfile","archived":false,"fork":false,"pushed_at":"2025-02-16T15:26:33.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T16:33:55.754Z","etag":null,"topics":["ai","hack","modelfile","ollama","sft","supervised-learning","training"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FrancescoDiSalesGithub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-02-08T09:58:55.000Z","updated_at":"2025-02-16T15:26:36.000Z","dependencies_parsed_at":"2025-02-16T16:34:35.003Z","dependency_job_id":"65ee44bd-2a5f-40fa-ad44-d983b7fcf70f","html_url":"https://github.com/FrancescoDiSalesGithub/few-shots-importer","commit_stats":null,"previous_names":["francescodisalesgithub/few-shots-importer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoDiSalesGithub%2Ffew-shots-importer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoDiSalesGithub%2Ffew-shots-importer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoDiSalesGithub%2Ffew-shots-importer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancescoDiSalesGithub%2Ffew-shots-importer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrancescoDiSalesGithub","download_url":"https://codeload.github.com/FrancescoDiSalesGithub/few-shots-importer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239640342,"owners_count":19673003,"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":["ai","hack","modelfile","ollama","sft","supervised-learning","training"],"created_at":"2025-02-19T10:31:45.383Z","updated_at":"2025-02-19T10:31:49.371Z","avatar_url":"https://github.com/FrancescoDiSalesGithub.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# few-shots-importer\ndoes a few shots prompt by using command instruction on a ollama modelfile\n\n# How to create the dataset\nIt is important to create a json like the following:\n```\n{\n\n\"prompts\":[\n    {\"who is the famous superhero that climbs on walls?\":\"spiderman\"},\n    {\"who is the famous superhero that turns green when he is angry?\":\"HULK\"}\n  ]\n\n}\n\n```\n\n# How to run\nJust run the python script as the following:\n\n```\npython3 few-shots-importer.py OLLAMA_MODEL PATH_MODELFILE your-dataset.json\n\n```\n\nWhere:\n* OLLAMA_MODEL is the model you are going to use (mistral,deepseek,qwen and so on)\n* PATH_MODELFILE the path where the new generated modelfile will be saved\n\nExample:\n\n```\npython3 few-shot-importer.py mistral /home/myuser/Modelfile dataset.json\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescodisalesgithub%2Ffew-shots-importer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancescodisalesgithub%2Ffew-shots-importer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescodisalesgithub%2Ffew-shots-importer/lists"}