Instructions to use tensorblock/openchat_3.5-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/openchat_3.5-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/openchat_3.5-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/openchat_3.5-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/openchat_3.5-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/openchat_3.5-GGUF", filename="openchat_3.5-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 tensorblock/openchat_3.5-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 tensorblock/openchat_3.5-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/openchat_3.5-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/openchat_3.5-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/openchat_3.5-GGUF:Q2_K
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 tensorblock/openchat_3.5-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/openchat_3.5-GGUF:Q2_K
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 tensorblock/openchat_3.5-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/openchat_3.5-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/openchat_3.5-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/openchat_3.5-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/openchat_3.5-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": "tensorblock/openchat_3.5-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/openchat_3.5-GGUF:Q2_K
- SGLang
How to use tensorblock/openchat_3.5-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 "tensorblock/openchat_3.5-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": "tensorblock/openchat_3.5-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 "tensorblock/openchat_3.5-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": "tensorblock/openchat_3.5-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/openchat_3.5-GGUF with Ollama:
ollama run hf.co/tensorblock/openchat_3.5-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/openchat_3.5-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 tensorblock/openchat_3.5-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 tensorblock/openchat_3.5-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/openchat_3.5-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/openchat_3.5-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/openchat_3.5-GGUF:Q2_K
- Lemonade
How to use tensorblock/openchat_3.5-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/openchat_3.5-GGUF:Q2_K
Run and chat with the model
lemonade run user.openchat_3.5-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- openchat_3.5-Q3_K_L.gguf +0 -3
- openchat_3.5-Q3_K_S.gguf +0 -3
- openchat_3.5-Q4_0.gguf +0 -3
- openchat_3.5-Q4_K_M.gguf +0 -3
- openchat_3.5-Q4_K_S.gguf +0 -3
- openchat_3.5-Q5_0.gguf +0 -3
- openchat_3.5-Q5_K_M.gguf +0 -3
- openchat_3.5-Q5_K_S.gguf +0 -3
- openchat_3.5-Q6_K.gguf +0 -3
- openchat_3.5-Q8_0.gguf +0 -3
openchat_3.5-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bcf84ef1a140443e54261ce34992b046d90bc9a27d394aaee4a42b076e9bc5b4
|
| 3 |
-
size 3822037504
|
|
|
|
|
|
|
|
|
|
|
|
openchat_3.5-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:13c2245d0fd4fd2663cf1c87286f5227c9957df535f0a67ca4120651127f916a
|
| 3 |
-
size 3164580352
|
|
|
|
|
|
|
|
|
|
|
|
openchat_3.5-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e5bddfa0754a56d6f023be9d70356731e0181f94f8d6dc77efa5024b1580e43f
|
| 3 |
-
size 4108930624
|
|
|
|
|
|
|
|
|
|
|
|
openchat_3.5-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d028a9ef32dee633900819b20370f11829e090afd8e5399d5db37ea2f81f70f5
|
| 3 |
-
size 4368453184
|
|
|
|
|
|
|
|
|
|
|
|
openchat_3.5-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0fee0b8b9b76233976cbcb98ac6c292af2416edee28752b54c256baf695ed3fe
|
| 3 |
-
size 4140387904
|
|
|
|
|
|
|
|
|
|
|
|
openchat_3.5-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:575f64723d9951771b3210ed147991bbf6701dac19e163550c97aafb55733060
|
| 3 |
-
size 4997730880
|
|
|
|
|
|
|
|
|
|
|
|
openchat_3.5-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5dab49e872e8256f4880b183e2ebdd8a299cafa5f940020be209dda3d08f64aa
|
| 3 |
-
size 5131424320
|
|
|
|
|
|
|
|
|
|
|
|
openchat_3.5-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ffc2ddeba8121f45fea3924d87026c5cfe5d795a7927e1a34207db7f15512e31
|
| 3 |
-
size 4997730880
|
|
|
|
|
|
|
|
|
|
|
|
openchat_3.5-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2ad0320cbfcbe0d5da38ad88307c3eca2243d82d1fbe0db08219eacadfb063f8
|
| 3 |
-
size 5942081152
|
|
|
|
|
|
|
|
|
|
|
|
openchat_3.5-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0d9070d29ee70f00d043a1d2941a8a0f3942c6775b34d14758480f9891fa99c6
|
| 3 |
-
size 7695877632
|
|
|
|
|
|
|
|
|
|
|
|