Text Generation
Transformers
Safetensors
English
qwen2
math
reasoning
conversational
text-generation-inference
ulam
Eval Results (legacy)
Instructions to use ulamai/Ulam-1-Small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ulamai/Ulam-1-Small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ulamai/Ulam-1-Small") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ulamai/Ulam-1-Small") model = AutoModelForCausalLM.from_pretrained("ulamai/Ulam-1-Small", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ulamai/Ulam-1-Small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ulamai/Ulam-1-Small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ulamai/Ulam-1-Small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ulamai/Ulam-1-Small
- SGLang
How to use ulamai/Ulam-1-Small with 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 "ulamai/Ulam-1-Small" \ --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": "ulamai/Ulam-1-Small", "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 "ulamai/Ulam-1-Small" \ --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": "ulamai/Ulam-1-Small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ulamai/Ulam-1-Small with Docker Model Runner:
docker model run hf.co/ulamai/Ulam-1-Small
Download build_receipt.json from ulamai/Ulam-1-Small: direct link, hf CLI and curl.
- Browser
- Download file 2.83 kB
-
https://huggingface.co/ulamai/Ulam-1-Small/resolve/main/build_receipt.json
- Command line
-
hf download hf://ulamai/Ulam-1-Small/build_receipt.json
-
curl -L -o build_receipt.json https://huggingface.co/ulamai/Ulam-1-Small/resolve/main/build_receipt.json
2.83 kB
| { | |
| "checks": [ | |
| "exact_adapter_sha256", | |
| "exact_adapter_config_sha256", | |
| "adapter_tensor_count_504", | |
| "adapter_finite", | |
| "parent_parameter_count", | |
| "active_adapter_default", | |
| "safe_merge", | |
| "merged_parameter_count", | |
| "merged_parameters_finite", | |
| "safe_serialization" | |
| ], | |
| "completed_at": "2026-08-19T09:47:24.119274+00:00", | |
| "dtype": "bfloat16", | |
| "operation": "PEFT merge_and_unload with safe_merge=True", | |
| "parameter_count": 3085938688, | |
| "schema_version": "ulam-public-model-build-receipt-v1", | |
| "software": { | |
| "accelerate": "1.13.0", | |
| "peft": "0.20.0", | |
| "platform": "macOS-15.3.1-arm64-arm-64bit", | |
| "python": "3.12.12", | |
| "safetensors": "0.8.0", | |
| "tokenizers": "0.22.2", | |
| "torch": "2.13.0", | |
| "transformers": "5.14.1" | |
| }, | |
| "source_adapter": { | |
| "config": { | |
| "bytes": 1150, | |
| "name": "adapter_config.json", | |
| "sha256": "1844cc34bf0e72af07815539b0040100e5cbf579b465c8ade89731bf6b74671f" | |
| }, | |
| "name": "prompt-balanced DPO checkpoint 20", | |
| "tensor_count": 504, | |
| "weights": { | |
| "bytes": 239536272, | |
| "name": "adapter_model.safetensors", | |
| "sha256": "e1c337d180f513b652226ed8fc3fb8b9900d5572e1e68b4c068b1193dd016842" | |
| } | |
| }, | |
| "source_parent": { | |
| "bytes": 6183389350, | |
| "files": [ | |
| { | |
| "bytes": 2427, | |
| "name": "chat_template.jinja", | |
| "sha256": "44d5f08f3f72b837eaad09f13a54c1f9f4eb58d75240334548b7fd52a5437fa5" | |
| }, | |
| { | |
| "bytes": 1551, | |
| "name": "config.json", | |
| "sha256": "72cd201be9cdea809814c42139c4f6974f9aa9f6d542c157bb02be78bc88d079" | |
| }, | |
| { | |
| "bytes": 117, | |
| "name": "generation_config.json", | |
| "sha256": "5b7c65dc5a45131b787a9cabb07348f77677b048139dc208db1746c84dc08751" | |
| }, | |
| { | |
| "bytes": 3995916856, | |
| "name": "model-00001-of-00002.safetensors", | |
| "sha256": "1722948a97c29ec6340c6591a433dec1f1d2a76f6726d1f1c371f888488c11cb" | |
| }, | |
| { | |
| "bytes": 2176010112, | |
| "name": "model-00002-of-00002.safetensors", | |
| "sha256": "8fbe5a0583ea2d2c55a9a27c0cb11768c75d7cb3b6bd2fd72c2fdb4fab80d54b" | |
| }, | |
| { | |
| "bytes": 35617, | |
| "name": "model.safetensors.index.json", | |
| "sha256": "328342baeeef765d522811c403a61da788c648930a38a7c5ab1a048a7578845a" | |
| }, | |
| { | |
| "bytes": 11422263, | |
| "name": "tokenizer.json", | |
| "sha256": "b17e16899b7fab7e695509f84bac5f10ed12804f0a590e935941e5af7f092f7f" | |
| }, | |
| { | |
| "bytes": 407, | |
| "name": "tokenizer_config.json", | |
| "sha256": "6b3ae98ce1845e699633801657f761ef091a60a71ca468d47cb456bc6b011598" | |
| } | |
| ], | |
| "identity": "ulam/sft-v2-step-409", | |
| "lineage_sha256": "1b90254f53af00976d71d369e4c37bb7cdd18053e862d26c1568ac0fdeefbbfc", | |
| "object_count": 8 | |
| }, | |
| "status": "PASSED" | |
| } | |