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 "the-acorn-ai/spiral-qwen-8b-khun-tictactoe-8k-step00320" \
    --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": "the-acorn-ai/spiral-qwen-8b-khun-tictactoe-8k-step00320",
		"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 "the-acorn-ai/spiral-qwen-8b-khun-tictactoe-8k-step00320" \
        --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": "the-acorn-ai/spiral-qwen-8b-khun-tictactoe-8k-step00320",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

SPIRAL Qwen3-8B Multi-Agent Model

This model was trained using the SPIRAL (Self-Play Iterative Reinforcement learning for Adaptation and Learning) framework.

Model Details

  • Base Model: Qwen/Qwen3-8B-Base
  • Training Framework: SPIRAL
  • Checkpoint: step_00320
  • Model Size: 8B parameters
  • Training Date: 2025-08-31

Training Configuration

The model was trained with self-play on multiple environments:

  • KuhnPoker-v1
  • TicTacToe-v0
  • SimpleNegotiation-v1

Training Parameters

{
  "learning_rate": "1e-6",
  "train_batch_size": 128,
  "num_ppo_epochs": 2,
  "temperature": 1.0,
  "max_model_len": 16384,
  "environments": [
    "KuhnPoker-v1",
    "TicTacToe-v0",
    "SimpleNegotiation-v1"
  ],
  "base_model": "Qwen/Qwen3-8B-Base",
  "framework": "SPIRAL"
}

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

tokenizer = AutoTokenizer.from_pretrained("the-acorn-ai/spiral-qwen-8b-khun-tictactoe-8k-step00320")
model = AutoModelForCausalLM.from_pretrained(
    "the-acorn-ai/spiral-qwen-8b-khun-tictactoe-8k-step00320",
    torch_dtype=torch.bfloat16,
    device_map="auto"
)

# Generate text
inputs = tokenizer("Your prompt here", return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)

License

This model is licensed under the Apache License 2.0.

Downloads last month
5
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for the-acorn-ai/spiral-qwen-8b-khun-tictactoe-8k-step00320

Finetuned
(439)
this model