Instructions to use second-state/CodeQwen1.5-7B-Chat-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use second-state/CodeQwen1.5-7B-Chat-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="second-state/CodeQwen1.5-7B-Chat-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("second-state/CodeQwen1.5-7B-Chat-GGUF") model = AutoModelForCausalLM.from_pretrained("second-state/CodeQwen1.5-7B-Chat-GGUF") - llama-cpp-python
How to use second-state/CodeQwen1.5-7B-Chat-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="second-state/CodeQwen1.5-7B-Chat-GGUF", filename="CodeQwen1.5-7B-Chat-Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use second-state/CodeQwen1.5-7B-Chat-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use second-state/CodeQwen1.5-7B-Chat-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "second-state/CodeQwen1.5-7B-Chat-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/CodeQwen1.5-7B-Chat-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M
- SGLang
How to use second-state/CodeQwen1.5-7B-Chat-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/CodeQwen1.5-7B-Chat-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/CodeQwen1.5-7B-Chat-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/CodeQwen1.5-7B-Chat-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/CodeQwen1.5-7B-Chat-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use second-state/CodeQwen1.5-7B-Chat-GGUF with Ollama:
ollama run hf.co/second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M
- Unsloth Studio
How to use second-state/CodeQwen1.5-7B-Chat-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for second-state/CodeQwen1.5-7B-Chat-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for second-state/CodeQwen1.5-7B-Chat-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for second-state/CodeQwen1.5-7B-Chat-GGUF to start chatting
- Docker Model Runner
How to use second-state/CodeQwen1.5-7B-Chat-GGUF with Docker Model Runner:
docker model run hf.co/second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M
- Lemonade
How to use second-state/CodeQwen1.5-7B-Chat-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/CodeQwen1.5-7B-Chat-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.CodeQwen1.5-7B-Chat-GGUF-Q4_K_M
List all available models
lemonade list
Add models
Browse files- CodeQwen1.5-7B-Chat-Q2_K.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q3_K_L.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q3_K_M.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q3_K_S.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q4_0.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q4_K_M.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q4_K_S.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q5_0.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q5_K_M.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q5_K_S.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q6_K.gguf +3 -0
- CodeQwen1.5-7B-Chat-Q8_0.gguf +3 -0
- CodeQwen1.5-7B-Chat-f16.gguf +3 -0
CodeQwen1.5-7B-Chat-Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e608a8653950aae75508fc80e47f09ab72a0de6850d0f8eb2d643e578e46852e
|
| 3 |
+
size 3052103456
|
CodeQwen1.5-7B-Chat-Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2559cab20893dfd04e75068be0abbb3e5ce2327b5e38932c46792db23a79b8c5
|
| 3 |
+
size 3986818848
|
CodeQwen1.5-7B-Chat-Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd46a9f87cd82b70397f109ca9491dc778e436be0e6848e5d76427aa0adc6691
|
| 3 |
+
size 3808626464
|
CodeQwen1.5-7B-Chat-Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b2ce2ab45555e204371edc622e52a70f83f8a5b53adeb403a175feaebdd0920
|
| 3 |
+
size 3500803872
|
CodeQwen1.5-7B-Chat-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbe2f7514a218350732dbfcfc5e78f75d9221ac70270298aa2643233b91eeab9
|
| 3 |
+
size 4179437344
|
CodeQwen1.5-7B-Chat-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:944cc3d2184d478350aa4185e46e4f6eff9ca0a53ffacc2c0c3f8a2b70b9cd28
|
| 3 |
+
size 4738590496
|
CodeQwen1.5-7B-Chat-Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81bb08532e2b70e707a9af213717f1f7a73f11ab37ab30cbfec05859e37631dd
|
| 3 |
+
size 4414449440
|
CodeQwen1.5-7B-Chat-Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:70bea3cf6a48625022e46df57077145f1f7c992ec75bed0edca3fadcddc25603
|
| 3 |
+
size 5038352160
|
CodeQwen1.5-7B-Chat-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:191a6d0f470f97eca44150a9cb52360c77b6e4396fb1d081d36fd68e636a9b91
|
| 3 |
+
size 5428160288
|
CodeQwen1.5-7B-Chat-Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75630e1e108e7ff83ca60259a2125acb56df99e3730139901bb3b420b3ce34f2
|
| 3 |
+
size 5148452640
|
CodeQwen1.5-7B-Chat-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:012abfe19f0127b7070ac2294ee5ba150e813677e8a6be1b01bd6c8d189d0dc2
|
| 3 |
+
size 6377588512
|
CodeQwen1.5-7B-Chat-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27c334852cd793e1a204a2b633f706f8f54a912055ed831cba73296ba8f30cee
|
| 3 |
+
size 7706773280
|
CodeQwen1.5-7B-Chat-f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2077bf8b73ba4af777ff5130c3cb301c7d0593e9519467c5ce1e6c390b98ad7b
|
| 3 |
+
size 14503511808
|