Instructions to use dbands/llama-3-8b-sql-instruct_16bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dbands/llama-3-8b-sql-instruct_16bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dbands/llama-3-8b-sql-instruct_16bit")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dbands/llama-3-8b-sql-instruct_16bit") model = AutoModelForCausalLM.from_pretrained("dbands/llama-3-8b-sql-instruct_16bit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dbands/llama-3-8b-sql-instruct_16bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dbands/llama-3-8b-sql-instruct_16bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dbands/llama-3-8b-sql-instruct_16bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dbands/llama-3-8b-sql-instruct_16bit
- SGLang
How to use dbands/llama-3-8b-sql-instruct_16bit 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 "dbands/llama-3-8b-sql-instruct_16bit" \ --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": "dbands/llama-3-8b-sql-instruct_16bit", "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 "dbands/llama-3-8b-sql-instruct_16bit" \ --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": "dbands/llama-3-8b-sql-instruct_16bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use dbands/llama-3-8b-sql-instruct_16bit with Docker Model Runner:
docker model run hf.co/dbands/llama-3-8b-sql-instruct_16bit
Trained with Unsloth
Browse files
config.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
| 21 |
"rope_scaling": null,
|
| 22 |
"rope_theta": 500000.0,
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
-
"torch_dtype": "
|
| 25 |
"transformers_version": "4.40.0",
|
| 26 |
"unsloth_version": "2024.4",
|
| 27 |
"use_cache": true,
|
|
|
|
| 21 |
"rope_scaling": null,
|
| 22 |
"rope_theta": 500000.0,
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
+
"torch_dtype": "bfloat16",
|
| 25 |
"transformers_version": "4.40.0",
|
| 26 |
"unsloth_version": "2024.4",
|
| 27 |
"use_cache": true,
|
model-00001-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3bf1ec0a18219635e7c5df4f36ed73dcf367c8d67b8355a82dcc8db6694a6db6
|
| 3 |
+
size 4976698672
|
model-00002-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c36fada88a07c1b12dfa24300d61f070657e50b6034cf8bd3fd3b8916014041
|
| 3 |
+
size 4999802720
|
model-00003-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd57dc525eb96fe67763664a47dfd1708b80b8ba7f04105ead729d82df33220b
|
| 3 |
+
size 4915916176
|
model-00004-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1168138808
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6879bc0983348cb881d43f3d4f73396dacef785d66a36156d9017c5d02161a3d
|
| 3 |
size 1168138808
|