Instructions to use Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Jcfunk/Ternary-Bonsai-8B-unpacked") model = PeftModel.from_pretrained(base_model, "Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints") - Transformers
How to use Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints
- SGLang
How to use Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints 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 "Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints" \ --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": "Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints", "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 "Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints" \ --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": "Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints with Docker Model Runner:
docker model run hf.co/Jcfunk/Ternary-Bonsai-8B-Code-SFT-checkpoints
Commit History
-
Latest checkpoint (step 500)
Verified signature4f442a9 -
Checkpoint step 500
Verified signature5422275 -
Latest checkpoint (step 450)
Verified signaturea4df788 -
Checkpoint step 450
Verified signature8738c9a -
Latest checkpoint (step 400)
Verified signature9c82b80 -
Checkpoint step 400
Verified signatured44c752 -
Latest checkpoint (step 350)
Verified signature6b5f753 -
Checkpoint step 350
Verified signature74e9748 -
Latest checkpoint (step 300)
Verified signature2033ed1 -
Checkpoint step 300
Verified signature06e8960 -
Latest checkpoint (step 250)
Verified signature8412c54 -
Checkpoint step 250
Verified signature7948d3a -
Latest checkpoint (step 200)
Verified signature4d9eeb4 -
Checkpoint step 200
Verified signature0e00600 -
Latest checkpoint (step 150)
Verified signatureef66195 -
Checkpoint step 150
Verified signatured36ac20 -
Latest checkpoint (step 100)
Verified signature898e8b1 -
Checkpoint step 100
Verified signature8be7440 -
Latest checkpoint (step 50)
Verified signature5059ab9 -
Checkpoint step 50
Verified signaturec308adc -
Latest checkpoint (step 400)
Verified signature8faf39e -
Checkpoint step 400
Verified signature70ed4b7 -
Latest checkpoint (step 350)
Verified signature4ce06ec -
Checkpoint step 350
Verified signature9968f1a -
Latest checkpoint (step 300)
Verified signature3269c63 -
Checkpoint step 300
Verified signaturee0707b9 -
Latest checkpoint (step 250)
Verified signature52105b2 -
Checkpoint step 250
Verified signaturede59484 -
Latest checkpoint (step 200)
Verified signature7933926 -
Checkpoint step 200
Verified signaturec983cf9
-
Latest checkpoint (step 150)
Verified signaturea153950 -
Checkpoint step 150
Verified signature4598a59 -
Latest checkpoint (step 100)
Verified signatureca0315d -
Checkpoint step 100
Verified signature4a8998e -
Latest checkpoint (step 50)
Verified signature0e4aab1 -
Checkpoint step 50
Verified signaturee9e5008 -
initial commit
Verified signaturecc852cc