haoranxu/ALMA-R-Preference
Viewer • Updated • 12.2k • 135 • 13
How to use martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs") # Load model directly
from transformers import AutoTokenizer, AutoModelForMultimodalLM
tokenizer = AutoTokenizer.from_pretrained("martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs")
model = AutoModelForMultimodalLM.from_pretrained("martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs")How to use martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs
How to use martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs" \
--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": "martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs",
"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 "martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs" \
--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": "martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs with Docker Model Runner:
docker model run hf.co/martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs
This model is a fine-tuned version of martimfasantos/tinyllama-1.1b-mt-sft-full on the haoranxu/ALMA-R-Preference dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
docker model run hf.co/martimfasantos/tinyllama-1.1b-mt-simpo_beta2.0_gamma1.0_LR5e-8_BS16_rmsprop_3epochs