Text Generation
Transformers
Safetensors
English
qwen3
small
supra
supra2
sota
conversational
text-generation-inference
Instructions to use SupraLabs/Supra2-100M-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SupraLabs/Supra2-100M-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SupraLabs/Supra2-100M-Base") 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("SupraLabs/Supra2-100M-Base") model = AutoModelForCausalLM.from_pretrained("SupraLabs/Supra2-100M-Base", 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 SupraLabs/Supra2-100M-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SupraLabs/Supra2-100M-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SupraLabs/Supra2-100M-Base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SupraLabs/Supra2-100M-Base
- SGLang
How to use SupraLabs/Supra2-100M-Base 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 "SupraLabs/Supra2-100M-Base" \ --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": "SupraLabs/Supra2-100M-Base", "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 "SupraLabs/Supra2-100M-Base" \ --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": "SupraLabs/Supra2-100M-Base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SupraLabs/Supra2-100M-Base with Docker Model Runner:
docker model run hf.co/SupraLabs/Supra2-100M-Base
Commit History
-
Update README.md
Verified signature8a3b26d
-
Move files from final_after_pretraining_without_anneal to root
Verified signaturea664acf -
Delete README_final.md
Verified signaturefee2e4c -
Create README.md
Verified signature56849e3 -
Update README_final.md
Verified signature04bde25 -
Update README_final.md
Verified signature6df3cd2 -
Update README_final.md
Verified signature59fa2fb -
Update README_final.md
Verified signatureb37884c -
Update README_final.md
Verified signature2de1dd4 -
Delete training_args.bin
Verified signature7b45c78 -
Delete tokenizer_config.json
Verified signatureb775903 -
Delete tokenizer.json
Verified signaturefd6c682 -
Delete model.safetensors
Verified signaturefb1b677 -
Delete generation_config.json
Verified signaturef9f54f1 -
Delete config.json
Verified signature2aec493 -
Delete chat_template.jinja
Verified signature32b4382 -
Upload folder using huggingface_hub
Verified signature5193a78 -
Delete training_args.bin
Verified signaturee65cbb6 -
Delete tokenizer_config.json
Verified signatured6db8c7 -
Delete tokenizer.json
Verified signature9a5cf00 -
Delete model.safetensors
Verified signature13a381f -
Delete generation_config.json
Verified signaturea253bcd -
Delete config.json
Verified signatureb2aad05 -
Delete chat_template.jinja
Verified signature940b6b0 -
Upload folder using huggingface_hub
Verified signature047bb4a -
Update README.md
Verified signature99ffdce -
Add files using upload-large-folder tool
Verified signaturec3570a1 -
Model save
Verified signaturedc81fac -
Training in progress, step 114440, checkpoint
Verified signaturea49f859 -
Training in progress, step 114440
Verified signature70de3f4 -
Training in progress, step 114000, checkpoint
Verified signature0007ab7 -
Training in progress, step 114000
Verified signatureed2d4b7 -
Training in progress, step 111000, checkpoint
Verified signature81783ef -
Training in progress, step 111000
Verified signatureac08c12 -
Training in progress, step 108000, checkpoint
Verified signatureb5b80ac -
Training in progress, step 108000
Verified signature0b5807f -
Training in progress, step 105000, checkpoint
Verified signature9d39fde -
Training in progress, step 105000
Verified signaturebd39d1f -
Training in progress, step 102000, checkpoint
Verified signature571ca09 -
Training in progress, step 102000
Verified signature5a04c3d -
Training in progress, step 99000, checkpoint
Verified signature3a37d72 -
Training in progress, step 99000
Verified signature25c8a91
-
Training in progress, step 96000, checkpoint
Verified signatureb3efe35 -
Training in progress, step 96000
Verified signature41eacae -
Training in progress, step 93000, checkpoint
Verified signature2221f1c -
Training in progress, step 93000
Verified signature2567d4b -
Training in progress, step 90000, checkpoint
Verified signaturec1db769 -
Training in progress, step 90000
Verified signature8f20ee8 -
Training in progress, step 87000, checkpoint
Verified signature26112a1 -
Training in progress, step 87000
Verified signature649bdcb