jarod0411/linker_v3
Viewer • Updated • 9.39M • 6
How to use jarod0411/stage2_v5 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="jarod0411/stage2_v5") # Load model directly
from transformers import AutoTokenizer, AutoModelForMultimodalLM
tokenizer = AutoTokenizer.from_pretrained("jarod0411/stage2_v5")
model = AutoModelForMultimodalLM.from_pretrained("jarod0411/stage2_v5")How to use jarod0411/stage2_v5 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "jarod0411/stage2_v5"
# 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_v5",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/jarod0411/stage2_v5
How to use jarod0411/stage2_v5 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "jarod0411/stage2_v5" \
--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_v5",
"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_v5" \
--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_v5",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use jarod0411/stage2_v5 with Docker Model Runner:
docker model run hf.co/jarod0411/stage2_v5
This model is a fine-tuned version of linker_v5/stage1 on the jarod0411/linker_v3 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.3173 | 1.0 | 11304 | 0.2837 | 0.9060 |
| 0.284 | 2.0 | 22608 | 0.2613 | 0.9124 |
| 0.2719 | 3.0 | 33912 | 0.2546 | 0.9140 |
| 0.2654 | 4.0 | 45216 | 0.2511 | 0.9148 |
| 0.2613 | 5.0 | 56520 | 0.2489 | 0.9154 |
| 0.2586 | 6.0 | 67824 | 0.2474 | 0.9158 |
| 0.2569 | 7.0 | 79128 | 0.2463 | 0.9161 |
| 0.2553 | 8.0 | 90432 | 0.2455 | 0.9163 |
| 0.2545 | 9.0 | 101736 | 0.2450 | 0.9164 |
| 0.2539 | 10.0 | 113040 | 0.2448 | 0.9165 |