amirrezaDev1378/ollama-model-direct-download
소개
Ollama model direct link generator and installer.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalOllama Model Direct Link Generator and Installer
Overview
The Ollama Model Direct Link Generator and Installer is a utility designed to streamline the process of obtaining direct download links for Ollama models and installing them. This tool is intended for developers, researchers, and enthusiasts interested in Ollama models, providing a straightforward and efficient solution.
New Tutorial & Documentation
Table of Contents
Introduction
This command-line interface (CLI) tool generates direct download links for Ollama models and allows automatic installation for locally available model files. Written in Golang, it utilizes the Requests library to fetch the necessary links.
Key functionalities include:
- Generating direct download links for Ollama models quickly.
- Installing locally available Ollama models.
Note
This program doesn't validate what you have downloaded. It will just copy all the files to the model folder to install it to Ollama. It's recommended that you verify checksums manually.
Usage
- Download the binary files based on your OS and processor architecture from the Release page.
Generate Direct Download Links
Run the binary file in your terminal using this command:
omdd get deepseek-coder-v2:latestWait for the tool to fetch the download link.
Download all the fetched files.
Install Ollama Models
First, make sure to create a backup of your current models. Where are Ollama models stored?
Store your models and your manifest file in any folder. The manifest file must be named
manifestwithout any file extension.Run the following command:
omdd install --model=<model-name> --blobsPath=<downloaded-blobs-path>Replace
<model-name>with the name of your model and<downloaded-blobs-path>with the path to the folder where you stored model files and the manifest.The tool will now install the model. It may take a while. Don't worry if it seems stuck.
Once it's finished, you can run the model from Ollama normally with:
ollama run <model-name>
Proxy Configuration
The program supports HTTP/HTTPS proxies through the standard environment variables. If you have a proxy configured, set
the appropriate environment variables before running omdd.
HTTP/HTTPS Proxy
Windows PowerShell
$env:HTTP_PROXY="http://127.0.0.1:8080"
$env:HTTPS_PROXY="http://127.0.0.1:8080"
omdd get deepseek-coder-v2:latest
Windows CMD
set HTTP_PROXY=http://127.0.0.1:8080
set HTTPS_PROXY=http://127.0.0.1:8080
omdd get deepseek-coder-v2:latest
Linux / macOS
export HTTP_PROXY="http://127.0.0.1:8080"
export HTTPS_PROXY="http://127.0.0.1:8080"
omdd get deepseek-coder-v2:latest
If your proxy requires authentication, use:
http://username:[email protected]:8080
For example, on Windows PowerShell:
$env:HTTP_PROXY="http://username:[email protected]:8080"
$env:HTTPS_PROXY="http://username:[email protected]:8080"
omdd get deepseek-coder-v2:latest
SOCKS5 Proxy
SOCKS5 can be configured using the SOCKS5_PROXY environment variable.
Windows PowerShell
$env:SOCKS5_PROXY="socks5://127.0.0.1:1080"
omdd get deepseek-coder-v2:latest
With authentication:
$env:SOCKS5_PROXY="socks5://username:[email protected]:1080"
omdd get deepseek-coder-v2:latest
Windows CMD
set SOCKS5_PROXY=socks5://127.0.0.1:1080
omdd get deepseek-coder-v2:latest
Linux / macOS
export SOCKS5_PROXY="socks5://127.0.0.1:1080"
omdd get deepseek-coder-v2:latest
Contributing
- Clone the repository to your local machine.
- Install the dependencies using
go mod tidy. - Make your changes.
- Run the tests using
go test ./.... - Build the binary using
make build.
License
MIT License
관련 프로젝트 살펴보기
불러오는 중…