kajuma/training_01-09_patch
Viewer • Updated • 1.27M • 17
How to use halcyon-llm/SmolLM2-360M-japanese_patch-11393 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="halcyon-llm/SmolLM2-360M-japanese_patch-11393") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("halcyon-llm/SmolLM2-360M-japanese_patch-11393")
model = AutoModelForCausalLM.from_pretrained("halcyon-llm/SmolLM2-360M-japanese_patch-11393", device_map="auto")How to use halcyon-llm/SmolLM2-360M-japanese_patch-11393 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "halcyon-llm/SmolLM2-360M-japanese_patch-11393"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "halcyon-llm/SmolLM2-360M-japanese_patch-11393",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/halcyon-llm/SmolLM2-360M-japanese_patch-11393
How to use halcyon-llm/SmolLM2-360M-japanese_patch-11393 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "halcyon-llm/SmolLM2-360M-japanese_patch-11393" \
--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": "halcyon-llm/SmolLM2-360M-japanese_patch-11393",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "halcyon-llm/SmolLM2-360M-japanese_patch-11393" \
--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": "halcyon-llm/SmolLM2-360M-japanese_patch-11393",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use halcyon-llm/SmolLM2-360M-japanese_patch-11393 with Docker Model Runner:
docker model run hf.co/halcyon-llm/SmolLM2-360M-japanese_patch-11393
This model is a fine-tuned version of HuggingFaceTB/SmolLM2-360M on the kajuma/training_01-09_patch dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 3.584 | 0.0878 | 1000 | 0.1139 |
| 3.4937 | 0.1755 | 2000 | 0.1080 |
| 3.3486 | 0.2633 | 3000 | 0.1059 |
| 3.4019 | 0.3511 | 4000 | 0.1044 |
| 3.2915 | 0.4388 | 5000 | 0.1033 |
| 3.2729 | 0.5266 | 6000 | 0.1023 |
| 3.2451 | 0.6144 | 7000 | 0.1015 |
| 3.2339 | 0.7022 | 8000 | 0.1009 |
| 3.2383 | 0.7899 | 9000 | 0.1005 |
| 3.2441 | 0.8777 | 10000 | 0.1003 |
| 3.2744 | 0.9655 | 11000 | 0.1002 |
Base model
HuggingFaceTB/SmolLM2-360M