Instructions to use robertmyers/sakura-3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use robertmyers/sakura-3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="robertmyers/sakura-3b", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("robertmyers/sakura-3b", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use robertmyers/sakura-3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "robertmyers/sakura-3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "robertmyers/sakura-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/robertmyers/sakura-3b
- SGLang
How to use robertmyers/sakura-3b 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 "robertmyers/sakura-3b" \ --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": "robertmyers/sakura-3b", "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 "robertmyers/sakura-3b" \ --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": "robertmyers/sakura-3b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use robertmyers/sakura-3b with Docker Model Runner:
docker model run hf.co/robertmyers/sakura-3b
first commit
Browse files- global_step880/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +0 -3
- global_step880/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +0 -3
- global_step880/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +0 -3
- global_step880/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +0 -3
- global_step880/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt +0 -3
- global_step880/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt +0 -3
- global_step880/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt +0 -3
- global_step880/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt +0 -3
- global_step880/mp_rank_00_model_states.pt +0 -3
global_step880/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:824da67bdc78fe87b3966ef0d9e67de85295f3d8b8d50e84002daafd55a5cf50
|
| 3 |
-
size 3969394679
|
|
|
|
|
|
|
|
|
|
|
|
global_step880/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:28241e68de32ea1c2bf541f0054afc13a73deff6acc5df0aa07b9a958f56ac4f
|
| 3 |
-
size 3969395255
|
|
|
|
|
|
|
|
|
|
|
|
global_step880/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:048084f5a57ae00bdd66a3111fd73c785f808340353a42ed76b2221346693899
|
| 3 |
-
size 3969395383
|
|
|
|
|
|
|
|
|
|
|
|
global_step880/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5d3d0e59e5146652066823951e94dd5fcaf7909b51374c83a4510e0924c061dc
|
| 3 |
-
size 3969395511
|
|
|
|
|
|
|
|
|
|
|
|
global_step880/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:952bb6f3933ece3ae5d1ecd69f53ea06cd44490bb96ef937947b0f98e47b6758
|
| 3 |
-
size 3969395575
|
|
|
|
|
|
|
|
|
|
|
|
global_step880/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a3bd3e813712cdcef5277b380f2993346e454886b72b98fffe6f34ce70028cb9
|
| 3 |
-
size 3969395383
|
|
|
|
|
|
|
|
|
|
|
|
global_step880/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0d6b677b33fff574b414df752a7142a16616559cb44941981b420c49651317b3
|
| 3 |
-
size 3969395383
|
|
|
|
|
|
|
|
|
|
|
|
global_step880/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f13767b19811fcb05be6594e49daba199a93af3fdea553e7fccc625e8d94ea8f
|
| 3 |
-
size 3969395383
|
|
|
|
|
|
|
|
|
|
|
|
global_step880/mp_rank_00_model_states.pt
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e4da9fea8225b44e31ae55efc887d413467a0914a503a1ea76174a89b9ed7275
|
| 3 |
-
size 5292629323
|
|
|
|
|
|
|
|
|
|
|
|