How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "princeton-nlp/Llama-3-Instruct-8B-SimPO-v0.2" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "princeton-nlp/Llama-3-Instruct-8B-SimPO-v0.2",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker images
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 "princeton-nlp/Llama-3-Instruct-8B-SimPO-v0.2" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "princeton-nlp/Llama-3-Instruct-8B-SimPO-v0.2",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

This is a model released from the preprint: SimPO: Simple Preference Optimization with a Reference-Free Reward. Please refer to our repository for more details.

Downloads last month
15
Safetensors
Model size
8B params
Tensor type
BF16
Β·
Inference Providers NEW
Input a message to start chatting with princeton-nlp/Llama-3-Instruct-8B-SimPO-v0.2.

Model tree for princeton-nlp/Llama-3-Instruct-8B-SimPO-v0.2

Finetunes
1 model
Merges
7 models
Quantizations
4 models

Spaces using princeton-nlp/Llama-3-Instruct-8B-SimPO-v0.2 10

Collection including princeton-nlp/Llama-3-Instruct-8B-SimPO-v0.2

Paper for princeton-nlp/Llama-3-Instruct-8B-SimPO-v0.2