AlekseyKorshuk/dalio-synthetic-io
Viewer • Updated • 379 • 25 • 1
How to use AlekseyKorshuk/1.3b-synthetic-v1-after-book with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="AlekseyKorshuk/1.3b-synthetic-v1-after-book") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("AlekseyKorshuk/1.3b-synthetic-v1-after-book")
model = AutoModelForCausalLM.from_pretrained("AlekseyKorshuk/1.3b-synthetic-v1-after-book", device_map="auto")How to use AlekseyKorshuk/1.3b-synthetic-v1-after-book with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "AlekseyKorshuk/1.3b-synthetic-v1-after-book"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "AlekseyKorshuk/1.3b-synthetic-v1-after-book",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/AlekseyKorshuk/1.3b-synthetic-v1-after-book
How to use AlekseyKorshuk/1.3b-synthetic-v1-after-book with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "AlekseyKorshuk/1.3b-synthetic-v1-after-book" \
--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": "AlekseyKorshuk/1.3b-synthetic-v1-after-book",
"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 "AlekseyKorshuk/1.3b-synthetic-v1-after-book" \
--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": "AlekseyKorshuk/1.3b-synthetic-v1-after-book",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use AlekseyKorshuk/1.3b-synthetic-v1-after-book with Docker Model Runner:
docker model run hf.co/AlekseyKorshuk/1.3b-synthetic-v1-after-book
This model is a fine-tuned version of /models/1.3b-dalio-principles-book on the AlekseyKorshuk/dalio-synthetic-io 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 | Accuracy |
|---|---|---|---|---|
| 2.0841 | 0.1 | 1 | 2.0254 | 0.0759 |
| 2.062 | 0.2 | 2 | 2.0254 | 0.0759 |
| 2.1509 | 0.3 | 3 | 1.9941 | 0.0761 |
| 2.1206 | 0.4 | 4 | 1.9941 | 0.0756 |
| 2.2087 | 0.5 | 5 | 1.9941 | 0.0757 |
| 2.0337 | 0.6 | 6 | 1.9902 | 0.0755 |
| 2.026 | 0.7 | 7 | 1.9854 | 0.0755 |
| 2.1879 | 0.8 | 8 | 1.9834 | 0.0756 |
| 2.1052 | 0.9 | 9 | 1.9824 | 0.0754 |
| 2.046 | 1.0 | 10 | 1.9805 | 0.0754 |