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 "ambrosfitz/tinyllama-history-chat_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": "ambrosfitz/tinyllama-history-chat_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 "ambrosfitz/tinyllama-history-chat_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": "ambrosfitz/tinyllama-history-chat_v0.2",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Run summary:

train/epoch 13.91
train/global_step 40
train/learning_rate 0.0
train/loss 0.2795
train/total_flos 4134138886176768.0
train/train_loss 1.33859
train/train_runtime 1368.8841
train/train_samples_per_second 10.344
train/train_steps_per_second 0.029

Downloads last month
16
Safetensors
Model size
1B params
Tensor type
F16
·
Inference Providers NEW
Input a message to start chatting with ambrosfitz/tinyllama-history-chat_v0.2.

Model tree for ambrosfitz/tinyllama-history-chat_v0.2

Quantizations
1 model