Instructions to use bartowski/llama-3-neural-chat-v1-8b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bartowski/llama-3-neural-chat-v1-8b-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bartowski/llama-3-neural-chat-v1-8b-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bartowski/llama-3-neural-chat-v1-8b-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bartowski/llama-3-neural-chat-v1-8b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bartowski/llama-3-neural-chat-v1-8b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bartowski/llama-3-neural-chat-v1-8b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bartowski/llama-3-neural-chat-v1-8b-GGUF
- SGLang
How to use bartowski/llama-3-neural-chat-v1-8b-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 "bartowski/llama-3-neural-chat-v1-8b-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": "bartowski/llama-3-neural-chat-v1-8b-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 "bartowski/llama-3-neural-chat-v1-8b-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": "bartowski/llama-3-neural-chat-v1-8b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bartowski/llama-3-neural-chat-v1-8b-GGUF with Docker Model Runner:
docker model run hf.co/bartowski/llama-3-neural-chat-v1-8b-GGUF
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,7 +15,9 @@ pipeline_tag: text-generation
|
|
| 15 |
|
| 16 |
## Llamacpp iMatrix Quantizations of llama-3-neural-chat-v1-8b
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
|
| 20 |
Original model: https://huggingface.co/Locutusque/llama-3-neural-chat-v1-8b
|
| 21 |
|
|
|
|
| 15 |
|
| 16 |
## Llamacpp iMatrix Quantizations of llama-3-neural-chat-v1-8b
|
| 17 |
|
| 18 |
+
This model has the <|eot_id|> token set to not-special, which seems to work better with current inference engines.
|
| 19 |
+
|
| 20 |
+
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> fork from pcuenca <a href="https://github.com/pcuenca/llama.cpp/tree/llama3-conversion">llama3-conversion</a> for quantization.
|
| 21 |
|
| 22 |
Original model: https://huggingface.co/Locutusque/llama-3-neural-chat-v1-8b
|
| 23 |
|