jarod0411/linker_v2
Viewer • Updated • 26.8M • 222
How to use jarod0411/stage2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="jarod0411/stage2") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("jarod0411/stage2")
model = AutoModelForCausalLM.from_pretrained("jarod0411/stage2")How to use jarod0411/stage2 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "jarod0411/stage2"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "jarod0411/stage2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/jarod0411/stage2
How to use jarod0411/stage2 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "jarod0411/stage2" \
--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": "jarod0411/stage2",
"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 "jarod0411/stage2" \
--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": "jarod0411/stage2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use jarod0411/stage2 with Docker Model Runner:
docker model run hf.co/jarod0411/stage2
This model is a fine-tuned version of linker_v4/stage1 on the jarod0411/linker_v2 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 |
|---|---|---|---|---|
| 0.3608 | 1.0 | 43075 | 0.3509 | 0.8883 |
| 0.3495 | 2.0 | 86150 | 0.3408 | 0.8910 |
| 0.3435 | 3.0 | 129225 | 0.3355 | 0.8925 |
| 0.3394 | 4.0 | 172300 | 0.3322 | 0.8933 |
| 0.3367 | 5.0 | 215375 | 0.3298 | 0.8940 |
| 0.3343 | 6.0 | 258450 | 0.3279 | 0.8945 |
| 0.3326 | 7.0 | 301525 | 0.3267 | 0.8948 |
| 0.3311 | 8.0 | 344600 | 0.3256 | 0.8951 |
| 0.33 | 9.0 | 387675 | 0.3249 | 0.8953 |
| 0.3296 | 10.0 | 430750 | 0.3246 | 0.8954 |