Transformers
Safetensors
GGUF
English
llama
text-generation-inference
unsloth
trl
sft
8-bit precision
conversational
Instructions to use kevin009/llama3math-s90 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kevin009/llama3math-s90 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kevin009/llama3math-s90", dtype="auto") - llama-cpp-python
How to use kevin009/llama3math-s90 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="kevin009/llama3math-s90", filename="llama3math-s90-unsloth.Q8_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use kevin009/llama3math-s90 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf kevin009/llama3math-s90:Q8_0 # Run inference directly in the terminal: llama-cli -hf kevin009/llama3math-s90:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf kevin009/llama3math-s90:Q8_0 # Run inference directly in the terminal: llama-cli -hf kevin009/llama3math-s90:Q8_0
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 kevin009/llama3math-s90:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf kevin009/llama3math-s90:Q8_0
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 kevin009/llama3math-s90:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf kevin009/llama3math-s90:Q8_0
Use Docker
docker model run hf.co/kevin009/llama3math-s90:Q8_0
- LM Studio
- Jan
- Ollama
How to use kevin009/llama3math-s90 with Ollama:
ollama run hf.co/kevin009/llama3math-s90:Q8_0
- Unsloth Studio new
How to use kevin009/llama3math-s90 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 kevin009/llama3math-s90 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 kevin009/llama3math-s90 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for kevin009/llama3math-s90 to start chatting
- Docker Model Runner
How to use kevin009/llama3math-s90 with Docker Model Runner:
docker model run hf.co/kevin009/llama3math-s90:Q8_0
- Lemonade
How to use kevin009/llama3math-s90 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kevin009/llama3math-s90:Q8_0
Run and chat with the model
lemonade run user.llama3math-s90-Q8_0
List all available models
lemonade list
Trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- config.json +12 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +0 -0
config.json
CHANGED
|
@@ -17,6 +17,18 @@
|
|
| 17 |
"num_hidden_layers": 32,
|
| 18 |
"num_key_value_heads": 8,
|
| 19 |
"pretraining_tp": 1,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
"rms_norm_eps": 1e-05,
|
| 21 |
"rope_scaling": {
|
| 22 |
"factor": 2.0,
|
|
|
|
| 17 |
"num_hidden_layers": 32,
|
| 18 |
"num_key_value_heads": 8,
|
| 19 |
"pretraining_tp": 1,
|
| 20 |
+
"quantization_config": {
|
| 21 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 22 |
+
"bnb_4bit_quant_type": "nf4",
|
| 23 |
+
"bnb_4bit_use_double_quant": true,
|
| 24 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 25 |
+
"llm_int8_has_fp16_weight": false,
|
| 26 |
+
"llm_int8_skip_modules": null,
|
| 27 |
+
"llm_int8_threshold": 6.0,
|
| 28 |
+
"load_in_4bit": true,
|
| 29 |
+
"load_in_8bit": false,
|
| 30 |
+
"quant_method": "bitsandbytes"
|
| 31 |
+
},
|
| 32 |
"rms_norm_eps": 1e-05,
|
| 33 |
"rope_scaling": {
|
| 34 |
"factor": 2.0,
|
model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e598862e9e45837ae66ddca1f2b24b375934f15f59c5b7c9245d6d9e6d74fa2
|
| 3 |
+
size 4652072943
|
model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c5394fe848f6eafef2a44f085e7b72e5ef0d315f98aa87b3827c2b1e6983b89
|
| 3 |
+
size 1050673280
|
model.safetensors.index.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|