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 "optimum-intel-internal-testing/tiny-random-ouro" \
    --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": "optimum-intel-internal-testing/tiny-random-ouro",
		"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 "optimum-intel-internal-testing/tiny-random-ouro" \
        --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": "optimum-intel-internal-testing/tiny-random-ouro",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

tiny-random-ouro

Tiny random Ouro model for optimum-intel OpenVINO CI.

Architecture: OuroForCausalLM (Universal Transformer). Generated with random weights; the full vocab_size (49152) and the real tokenizer are kept so the tokenizer round-trips, while all other dimensions are shrunk. total_ut_steps=4 is preserved to exercise the Universal-Transformer loop.

field value
hidden_size 32
intermediate_size 64
num_hidden_layers 2
num_attention_heads 4
num_key_value_heads 2
head_dim 8
total_ut_steps 4
vocab_size 49152

Reproduce with the script in the optimum-intel PR description.

Downloads last month
140
Safetensors
Model size
3.16M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support