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 "SamsungSAILMontreal/ByteCraft" \
    --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": "SamsungSAILMontreal/ByteCraft",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
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 "SamsungSAILMontreal/ByteCraft" \
        --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": "SamsungSAILMontreal/ByteCraft",
		"prompt": "Once upon a time,",
		"max_tokens": 512,
		"temperature": 0.5
	}'
Quick Links

Configuration Parsing Warning:Config file tokenizer_config.json cannot be fetched (too big)

ByteCraft

ByteCraft is the world's first generative model of SWF video games and animations through bytes conditional on prompt.

For more details, please refer to our Blog, Paper/Tech-report, and Inference Code.

Reference

If you find our work useful, please consider citing:

@article{202503.1962,
    doi = {10.20944/preprints202503.1962.v1},
    url = {https://www.preprints.org/manuscript/202503.1962/v1},
    year = 2025,
    month = {March},
    publisher = {Preprints},
    author = {Alexia Jolicoeur-Martineau and Emy Gervais},
    title = {ByteCraft: Generating Video Games and Animations Through Bytes},
    journal = {Preprints}
}
Downloads last month
11
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 SamsungSAILMontreal/ByteCraft

Base model

Qwen/Qwen2.5-7B
Finetuned
(2576)
this model
Quantizations
3 models