Instructions to use second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF") model = AutoModelForMultimodalLM.from_pretrained("second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF") - llama-cpp-python
How to use second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF", filename="Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf second-state/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "second-state/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF:Q4_K_M
- SGLang
How to use second-state/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF with Ollama:
ollama run hf.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF:Q4_K_M
- Unsloth Studio
How to use second-state/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-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/Llama-3-8B-Instruct-Gradient-1048k-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF with Docker Model Runner:
docker model run hf.co/second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF:Q4_K_M
- Lemonade
How to use second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/Llama-3-8B-Instruct-Gradient-1048k-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Llama-3-8B-Instruct-Gradient-1048k-GGUF-Q4_K_M
List all available models
lemonade list
Add models
Browse filesSigned-off-by: Xin Liu <sam@secondstate.io>
- .gitattributes +1 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q2_K.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q3_K_L.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q3_K_M.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q3_K_S.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q4_0.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q4_K_M.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q4_K_S.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q5_0.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q5_K_M.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q5_K_S.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q6_K.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-Q8_0.gguf +3 -0
- Llama-3-8B-Instruct-Gradient-1048k-f16.gguf +3 -0
- config.json +28 -0
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.gguf filter=lfs diff=lfs merge=lfs -text
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ef6124aa67cded967ef545c020bebfc13b7e8931f0423cae06b7491d4c4c06a
|
| 3 |
+
size 3179131136
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a808b91cde6d819a75e7e3bb07fad87a376521495d3f9335901c4997f454eef8
|
| 3 |
+
size 4321956096
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdacad367d2d172f405328ddfa4db5ae5311320f8034bbbe4a568d919aaba4c9
|
| 3 |
+
size 4018917632
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d804260111d0408e1959d41da9b5ffeeabbca03c9a2468eee1da6940190518ed
|
| 3 |
+
size 3664498944
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:054d5fb734a9c9040e37dae466cd485040d352eb743aea22e34129dcc14b2278
|
| 3 |
+
size 4661211392
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb6c81ab41d9873839d444f64893ccce01606473642b7d3fef3e5850bda21264
|
| 3 |
+
size 4920733952
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f13111f10bb4ceca3fb69098444d5715a6324023d6b18bceefac2e8ceec097f4
|
| 3 |
+
size 4692668672
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e29aa74d7baa6fe0e80f7ab6bd14f85ccacc5d2fd2cea5779a17e785db1eae4
|
| 3 |
+
size 5599293696
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95d7a76d6d723792e77c66c814929460f1715aaff324860696d05436b770b929
|
| 3 |
+
size 5732987136
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f39899b28396cf77b165245cc03a8bc5ea5249efe5de8a46ab611aee4b30d806
|
| 3 |
+
size 5599293696
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4962ed758b314da060bfc65d25aa82bc045e6223f369341b72104c2ccc4e8299
|
| 3 |
+
size 6596006144
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1eb42e00debee39850aa512a0c31cd7185b1989dd2a2b16fe9ad9ebe04549cc8
|
| 3 |
+
size 8540770560
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f73d1fa08a670f08482d8050867af7b63ccf074f70ed8c1c95463c2c6839fe97
|
| 3 |
+
size 16068890816
|
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "gradientai/llama3-run1-stage524k-fm-v3",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"LlamaForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"bos_token_id": 128000,
|
| 9 |
+
"eos_token_id": 128001,
|
| 10 |
+
"hidden_act": "silu",
|
| 11 |
+
"hidden_size": 4096,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 14336,
|
| 14 |
+
"max_position_embeddings": 1048576,
|
| 15 |
+
"model_type": "llama",
|
| 16 |
+
"num_attention_heads": 32,
|
| 17 |
+
"num_hidden_layers": 32,
|
| 18 |
+
"num_key_value_heads": 8,
|
| 19 |
+
"pretraining_tp": 1,
|
| 20 |
+
"rms_norm_eps": 1e-05,
|
| 21 |
+
"rope_scaling": null,
|
| 22 |
+
"rope_theta": 2804339835.0,
|
| 23 |
+
"tie_word_embeddings": false,
|
| 24 |
+
"torch_dtype": "bfloat16",
|
| 25 |
+
"transformers_version": "4.39.1",
|
| 26 |
+
"use_cache": true,
|
| 27 |
+
"vocab_size": 128256
|
| 28 |
+
}
|