Instructions to use second-state/Qwen2-0.5B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use second-state/Qwen2-0.5B-Instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="second-state/Qwen2-0.5B-Instruct-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("second-state/Qwen2-0.5B-Instruct-GGUF") model = AutoModelForCausalLM.from_pretrained("second-state/Qwen2-0.5B-Instruct-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use second-state/Qwen2-0.5B-Instruct-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use second-state/Qwen2-0.5B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "second-state/Qwen2-0.5B-Instruct-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "second-state/Qwen2-0.5B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M
- SGLang
How to use second-state/Qwen2-0.5B-Instruct-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "second-state/Qwen2-0.5B-Instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "second-state/Qwen2-0.5B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "second-state/Qwen2-0.5B-Instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "second-state/Qwen2-0.5B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use second-state/Qwen2-0.5B-Instruct-GGUF with Ollama:
ollama run hf.co/second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use second-state/Qwen2-0.5B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use second-state/Qwen2-0.5B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/Qwen2-0.5B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2-0.5B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload models
Browse files- .gitattributes +13 -0
- Qwen2-0.5B-Instruct-Q2_K.gguf +3 -0
- Qwen2-0.5B-Instruct-Q3_K_L.gguf +3 -0
- Qwen2-0.5B-Instruct-Q3_K_M.gguf +3 -0
- Qwen2-0.5B-Instruct-Q3_K_S.gguf +3 -0
- Qwen2-0.5B-Instruct-Q4_0.gguf +3 -0
- Qwen2-0.5B-Instruct-Q4_K_M.gguf +3 -0
- Qwen2-0.5B-Instruct-Q4_K_S.gguf +3 -0
- Qwen2-0.5B-Instruct-Q5_0.gguf +3 -0
- Qwen2-0.5B-Instruct-Q5_K_M.gguf +3 -0
- Qwen2-0.5B-Instruct-Q5_K_S.gguf +3 -0
- Qwen2-0.5B-Instruct-Q6_K.gguf +3 -0
- Qwen2-0.5B-Instruct-Q8_0.gguf +3 -0
- Qwen2-0.5B-Instruct-f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,16 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Qwen2-0.5B-Instruct-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Qwen2-0.5B-Instruct-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Qwen2-0.5B-Instruct-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Qwen2-0.5B-Instruct-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Qwen2-0.5B-Instruct-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Qwen2-0.5B-Instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Qwen2-0.5B-Instruct-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Qwen2-0.5B-Instruct-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Qwen2-0.5B-Instruct-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Qwen2-0.5B-Instruct-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Qwen2-0.5B-Instruct-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Qwen2-0.5B-Instruct-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
Qwen2-0.5B-Instruct-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
Qwen2-0.5B-Instruct-Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3000fc3c69fd3c99722ad4e3113e3ba18bcb4335699c5be9f6fb0a567c416a23
|
| 3 |
+
size 338604448
|
Qwen2-0.5B-Instruct-Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:966cb6b543c3f6a4126c3b09e2972112d5c3dce9c176eea7d74a58737f5f9cdd
|
| 3 |
+
size 369355168
|
Qwen2-0.5B-Instruct-Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03cd8353e85bdb5085879f2080885a8ffe397c9335c63523a86785c8dc42a1c3
|
| 3 |
+
size 355463584
|
Qwen2-0.5B-Instruct-Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:16cadcfd71015377232c03990ed14ca62021bb2fe8d7fd549f3126cf778157cc
|
| 3 |
+
size 338260384
|
Qwen2-0.5B-Instruct-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9373c66a6959f443e0f972fea89660ee5b3fdca2a62ec21026213b58c33e447
|
| 3 |
+
size 352151968
|
Qwen2-0.5B-Instruct-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fdb5f495a0ef110a480e08da05552abb86daddae561f7fa806a97ae31120694b
|
| 3 |
+
size 397804960
|
Qwen2-0.5B-Instruct-Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c3764dae384628ec9327db15a84e7ebab473d180a170454d6a4529b9fa8e76a
|
| 3 |
+
size 385468832
|
Qwen2-0.5B-Instruct-Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fcbf462b3ca65685e3075fee1d35b5183f7630e27ef75addd15851b0c1dd9927
|
| 3 |
+
size 396880288
|
Qwen2-0.5B-Instruct-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98c08198a2ac03049b310e6f9b204fdfd726527ae502e55443e028a084ab9de0
|
| 3 |
+
size 420083104
|
Qwen2-0.5B-Instruct-Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cebd32cf89327174d9acce3da7c4c40153b4476324bf13428242b03528919774
|
| 3 |
+
size 412707232
|
Qwen2-0.5B-Instruct-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:357a1e8ed8927bd08c7c89e8cd8ad61fe5a6e880467e06e4416611f669bfba49
|
| 3 |
+
size 505733536
|
Qwen2-0.5B-Instruct-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da8296aa74aced58f4df45b611683a55e96b598b706db04ab96c7201478dc0e6
|
| 3 |
+
size 531065248
|
Qwen2-0.5B-Instruct-f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f07de5ee9a80150a00b07de2b47003a2312296338296ad3d24766effbafdb4b9
|
| 3 |
+
size 994153888
|