Instructions to use second-state/Neural-Chat-7B-v3-1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use second-state/Neural-Chat-7B-v3-1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="second-state/Neural-Chat-7B-v3-1-GGUF")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("second-state/Neural-Chat-7B-v3-1-GGUF") model = AutoModelForCausalLM.from_pretrained("second-state/Neural-Chat-7B-v3-1-GGUF") - llama-cpp-python
How to use second-state/Neural-Chat-7B-v3-1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="second-state/Neural-Chat-7B-v3-1-GGUF", filename="neural-chat-7b-v3-1-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use second-state/Neural-Chat-7B-v3-1-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/Neural-Chat-7B-v3-1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/Neural-Chat-7B-v3-1-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/Neural-Chat-7B-v3-1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/Neural-Chat-7B-v3-1-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/Neural-Chat-7B-v3-1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf second-state/Neural-Chat-7B-v3-1-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/Neural-Chat-7B-v3-1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf second-state/Neural-Chat-7B-v3-1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/Neural-Chat-7B-v3-1-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use second-state/Neural-Chat-7B-v3-1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "second-state/Neural-Chat-7B-v3-1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "second-state/Neural-Chat-7B-v3-1-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/second-state/Neural-Chat-7B-v3-1-GGUF:Q4_K_M
- SGLang
How to use second-state/Neural-Chat-7B-v3-1-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/Neural-Chat-7B-v3-1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "second-state/Neural-Chat-7B-v3-1-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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/Neural-Chat-7B-v3-1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "second-state/Neural-Chat-7B-v3-1-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use second-state/Neural-Chat-7B-v3-1-GGUF with Ollama:
ollama run hf.co/second-state/Neural-Chat-7B-v3-1-GGUF:Q4_K_M
- Unsloth Studio
How to use second-state/Neural-Chat-7B-v3-1-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/Neural-Chat-7B-v3-1-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/Neural-Chat-7B-v3-1-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/Neural-Chat-7B-v3-1-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use second-state/Neural-Chat-7B-v3-1-GGUF with Docker Model Runner:
docker model run hf.co/second-state/Neural-Chat-7B-v3-1-GGUF:Q4_K_M
- Lemonade
How to use second-state/Neural-Chat-7B-v3-1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/Neural-Chat-7B-v3-1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Neural-Chat-7B-v3-1-GGUF-Q4_K_M
List all available models
lemonade list
Xin Liu commited on
Commit ·
0335ed3
1
Parent(s): dada183
Add models
Browse filesSigned-off-by: Xin Liu <sam@secondstate.io>
- neural-chat-7b-v3-1-Q2_K.gguf +3 -0
- neural-chat-7b-v3-1-Q3_K_L.gguf +3 -0
- neural-chat-7b-v3-1-Q3_K_M.gguf +3 -0
- neural-chat-7b-v3-1-Q3_K_S.gguf +3 -0
- neural-chat-7b-v3-1-Q4_0.gguf +3 -0
- neural-chat-7b-v3-1-Q4_K_M.gguf +3 -0
- neural-chat-7b-v3-1-Q4_K_S.gguf +3 -0
- neural-chat-7b-v3-1-Q5_0.gguf +3 -0
- neural-chat-7b-v3-1-Q5_K_M.gguf +3 -0
- neural-chat-7b-v3-1-Q5_K_S.gguf +3 -0
- neural-chat-7b-v3-1-Q6_K.gguf +3 -0
- neural-chat-7b-v3-1-Q8_0.gguf +3 -0
neural-chat-7b-v3-1-Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:278dd290e70615e79483f6589a0b6c3dd8236298c3ebc85d3068d393c15bfa90
|
| 3 |
+
size 2701416064
|
neural-chat-7b-v3-1-Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c089607e11a02988f1e92ff0682b24cbecac5c9adcf4d332a3d82055f29133c
|
| 3 |
+
size 3822024320
|
neural-chat-7b-v3-1-Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7eface5d2e09a4725f0b5e03cf10a89e11dc79d2c15db7d78b3d37c93989659b
|
| 3 |
+
size 3518985856
|
neural-chat-7b-v3-1-Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f5b43b2827bfb65d4124420824054b738437d255316931795dbe687b974ef7e
|
| 3 |
+
size 3164567168
|
neural-chat-7b-v3-1-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f6244f19c311193bd6dc796ca475df01dd38ff391e8f4788731739bbb4a3a69
|
| 3 |
+
size 4108916352
|
neural-chat-7b-v3-1-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b007dbc5da4dca421374e38cf8cc8e7ae4e30d46040b7e8623717ce89c980969
|
| 3 |
+
size 4368438912
|
neural-chat-7b-v3-1-Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5b5266a8fc9911399e79a2accaeae5070bcf7b9c6e4b341c3012345d4ddc4286
|
| 3 |
+
size 4140373632
|
neural-chat-7b-v3-1-Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae9f7d9663126aa21c99c9dbd6c90c182d39612141d3a0b84b4ab9a3011959e8
|
| 3 |
+
size 4997715584
|
neural-chat-7b-v3-1-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c754cefc47842167b229fc78bff511f96c173c00962e5dbb44ea11d206492370
|
| 3 |
+
size 5131409024
|
neural-chat-7b-v3-1-Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:577ed1bee22495cf992124d11f761f3ca2be70c8b1b20ebaf95f5994ff2af782
|
| 3 |
+
size 4997715584
|
neural-chat-7b-v3-1-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4e17615beb960c3c32292f5cfbf7b24d5d470df334aa9bec128903af243426f4
|
| 3 |
+
size 5942064768
|
neural-chat-7b-v3-1-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5273dd0f966af0a55f66b4fdb379b587010f2d4d25eb51af21a8e69889c4b977
|
| 3 |
+
size 7695857280
|