{"id":25650130,"url":"https://github.com/onllama/Onllama.ModelScope2Registry","last_synced_at":"2025-02-23T15:01:40.665Z","repository":{"id":271601461,"uuid":"913878395","full_name":"onllama/Onllama.ModelScope2Registry","owner":"onllama","description":"Ollama 模型 Registry 镜像站 / 加速器，让 Ollama  从 ModelScope 魔搭 更快的 拉取 / 下载 模型。","archived":false,"fork":false,"pushed_at":"2025-02-19T13:56:05.000Z","size":64,"stargazers_count":56,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-19T14:30:49.989Z","etag":null,"topics":["modelscope","ollama"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onllama.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-01-08T14:26:26.000Z","updated_at":"2025-02-19T13:56:09.000Z","dependencies_parsed_at":"2025-02-08T10:19:17.415Z","dependency_job_id":"38f472df-57e3-4b02-adf1-ec94b6f87d38","html_url":"https://github.com/onllama/Onllama.ModelScope2Registry","commit_stats":null,"previous_names":["milbk/onllama.modelscope2registry","onllama/onllama.modelscope2registry"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onllama%2FOnllama.ModelScope2Registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onllama%2FOnllama.ModelScope2Registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onllama%2FOnllama.ModelScope2Registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onllama%2FOnllama.ModelScope2Registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onllama","download_url":"https://codeload.github.com/onllama/Onllama.ModelScope2Registry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240331333,"owners_count":19784644,"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":["modelscope","ollama"],"created_at":"2025-02-23T15:00:48.973Z","updated_at":"2025-02-23T15:01:40.655Z","avatar_url":"https://github.com/onllama.png","language":"C#","readme":"## Onllama.ModelScope2Registry \nModelScope2Registry 是 Ollama 到 ModelScope 的模型 Registry 镜像站 / 加速器，它为 ModelScope 补齐更多了 Ollama Registry Manifests 信息，使 Ollama 能够从 ModelScope 魔搭 更快的 拉取 / 下载 模型。 \n## 快速开始\n### 拉取模型\n请选择带有 GGUF 模型的仓库：\n```\nollama run modelscope2ollama-registry.azurewebsites.net/qwen/Qwen2.5-7B-Instruct-gguf\n\n# （可选的，复制模型为较短的新名称并移除原名称模型）\n# ollama cp modelscope2ollama-registry.azurewebsites.net/qwen/Qwen2.5-7B-Instruct-gguf Qwen2.5:7B\n# ollama rm modelscope2ollama-registry.azurewebsites.net/qwen/Qwen2.5-7B-Instruct-gguf\n# ollama run Qwen2.5:7B\n```\n这将能够拉取 `https://www.modelscope.cn/models/qwen/Qwen2.5-0.5B-Instruct-gguf` 中的模型，对于不带有标签或 `latest` 将依次按顺序尝试选择`Q4_K_M`、`Q4_0`、`Q8_0`量化。\n### 指定量化\n可以通过 tag 指定选择的量化：\n```\nollama run modelscope2ollama-registry.azurewebsites.net/qwen/Qwen2.5-7B-Instruct-gguf:Q8_0\n```\n这将能够拉取 `https://www.modelscope.cn/models/qwen/Qwen2.5-7B-Instruct-gguf/resolve/master/qwen2.5-0.5b-instruct-q8_0.gguf` ，量化类型标签不区分大小写，你可以在 [这里](https://github.com/ollama/ollama/blob/main/docs/import.md#supported-quantizations) 查看 Ollama 支持的量化。\n\n仓库中需要包含带有正确格式文件名的 GGUF 文件（模型名称以“`-`”分隔，最后一位需要为有效的量化类型，形如：model-quant.gguf），暂不支持包含类似 `0000x-of-0000x` 的切分后的模型。\n### 指定模板\n若对话模板未能正确识别或识别有误导致对话输出异常，你可以尝试在标签后添加`--`为模型指定对话模板：\n```\nollama run modelscope2ollama-registry.azurewebsites.net/qwen/Qwen2.5-7B-Instruct-gguf:Q8_0--qwen2\n```\n你可以查看 [Ollama 官方支持的模板](https://github.com/ollama/ollama/tree/main/template)，和 [我们支持的模板](https://github.com/onllama/templates)，以手动指定更加合适的模板。\n","funding_links":[],"categories":["C# #"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonllama%2FOnllama.ModelScope2Registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonllama%2FOnllama.ModelScope2Registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonllama%2FOnllama.ModelScope2Registry/lists"}