Views
No views yet


curl -fsSL https://ollama.com/install.sh | sh1# make sure you hve Python 3.8+
2# apt-get update && apt-get install libcurl build-essential curl
3pip install huggingface-hub ollama
4huggingface-cli download Manojb/Qwen-7B-toolcalling-ReSearch-gguf-Q8_0 --download-dir Qwen-7B-toolcalling-ReSearch-gguf-Q8_0
5cd "$(find . -type d -iname '*Qwen-7B-toolcalling-ReSearch-gguf-Q8_0*' | head -n 1)"
6source run_model.sh1# Download and run instantly
2ollama create qwen-7b:toolcall -f ModelFile
3ollama run qwen-7b:toolcall # without chat completion1curl http://localhost:11434/api/generate -H "Content-Type: application/json" -d '{
2 "model": "qwen-7b:toolcall",
3 "prompt": "Get the current weather in San Francisco and convert to Celsius",
4 "stream": false
5}'1# Load with Ollama
2import requests
3
4response = requests.post('http://localhost:11434/api/generate', json={
5 'model': 'qwen-7b:toolcall',
6 'prompt': 'Get the current weather in San Francisco and convert to Celsius',
7 'stream': False
8})
9
10print(response.json()['response'])1curl http://localhost:11434/api/chat -d '{
2 "model": "llama3.2",
3 "stream": false,
4 "messages": [
5 {"role": "system", "content": "You are a helpful assistant."},
6 {"role": "user", "content": "Why is the sky blue?"}
7 ]
8}'1from ollama import chat
2
3# Your custom model name here
4model_name = "qwen-7b:toolcall"
5
6messages = [
7 {"role": "system", "content": "You are an instruct model."},
8 {"role": "user", "content": "Explain how to use this custom model in Python."}
9]
10
11response = chat(model=model_name, messages=messages)
12print(response.message.content)| Link | Type | Size/GB | Notes |
|---|---|---|---|
| GGUF | Q2_K | 3.1 | |
| GGUF | Q3_K_S | 3.6 | |
| GGUF | Q3_K_M | 3.9 | lower quality |
| GGUF | Q3_K_L | 4.2 | |
| GGUF | IQ4_XS | 4.4 | |
| GGUF | Q4_K_S | 4.6 | fast, recommended |
| GGUF | Q4_K_M | 4.8 | fast, recommended |
| GGUF | Q5_K_S | 5.4 | |
| GGUF | Q5_K_M | 5.5 | |
| GGUF | Q6_K | 6.4 | very good quality |
| GGUF | Q8_0 | 8.2 | fast, best quality |
| GGUF | f16 | 15.3 | 16 bpw, overkill |
