Instructions to use ByteDance-Seed/Seed-OSS-36B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ByteDance-Seed/Seed-OSS-36B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ByteDance-Seed/Seed-OSS-36B-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("ByteDance-Seed/Seed-OSS-36B-Base") model = AutoModelForCausalLM.from_pretrained("ByteDance-Seed/Seed-OSS-36B-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 ByteDance-Seed/Seed-OSS-36B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ByteDance-Seed/Seed-OSS-36B-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": "ByteDance-Seed/Seed-OSS-36B-Base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ByteDance-Seed/Seed-OSS-36B-Base
- SGLang
How to use ByteDance-Seed/Seed-OSS-36B-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 "ByteDance-Seed/Seed-OSS-36B-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": "ByteDance-Seed/Seed-OSS-36B-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 "ByteDance-Seed/Seed-OSS-36B-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": "ByteDance-Seed/Seed-OSS-36B-Base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ByteDance-Seed/Seed-OSS-36B-Base with Docker Model Runner:
docker model run hf.co/ByteDance-Seed/Seed-OSS-36B-Base
Commit History
-
Update EvalEval source links to flat datastore
Verified signatureUpdates existing EvalEval Community Evals YAML entries to link to flat datastore aggregate objects pinned to an immutable EEE datastore commit, and normalizes source.name to EvalEval. No score, dataset, task, or date changes are intended. This updates existing open PR refs only. Contributor: evalevalf2d1a91
-
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval52bbe34
-
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evaleval124febd -
Add EvalEval community eval results
Verified signatureAdds EvalEval Community Evals YAML entries with source backlinks to EEE aggregate records. Contributor: evalevala369b2b
-
Update readme, chat_template (#4)
Verified signature- Update readme, chat_template (b16d0400780ac4a6fd6a2be1e6e7e665c5aa0492) Co-authored-by: yong <yo37@users.noreply.huggingface.co>866afe2
-
Update README.md
Verified signature342a450
-
Update README.md (#3)
Verified signature- Update README.md (0b1ab1612684e388655a22446ed4ee4d6d2a9835) Co-authored-by: yong <yo37@users.noreply.huggingface.co>454b433 -
docs: update MODEL_CARD, README, LICENSE (#2)
Verified signature- docs: update MODEL_CARD, README, LICENSE (aab1180ff0c04932273ba590c10a9cfc8358248c) Co-authored-by: yong <yo37@users.noreply.huggingface.co>f268dfd
-
Upload model-00014-of-00015.safetensors with huggingface_hub
Verified signatured0ea365 -
Upload model-00012-of-00015.safetensors with huggingface_hub
Verified signature6fb8b2f -
Upload model-00015-of-00015.safetensors with huggingface_hub
Verified signatureabece15 -
Upload model-00011-of-00015.safetensors with huggingface_hub
Verified signaturec0ca295 -
Upload model-00013-of-00015.safetensors with huggingface_hub
Verified signature40c5821 -
Upload model-00010-of-00015.safetensors with huggingface_hub
Verified signaturefa6a054 -
Upload model-00009-of-00015.safetensors with huggingface_hub
Verified signatured05a9b7 -
Upload model-00008-of-00015.safetensors with huggingface_hub
Verified signature89ba946 -
Upload model-00007-of-00015.safetensors with huggingface_hub
Verified signature89d80d1 -
Upload model-00006-of-00015.safetensors with huggingface_hub
Verified signatured0bc5a8 -
Upload model-00005-of-00015.safetensors with huggingface_hub
Verified signatured758300 -
Upload model-00004-of-00015.safetensors with huggingface_hub
Verified signature5da8088 -
Upload model-00003-of-00015.safetensors with huggingface_hub
Verified signaturea6a8b39 -
Upload model-00002-of-00015.safetensors with huggingface_hub
Verified signature3bba040 -
Upload model-00001-of-00015.safetensors with huggingface_hub
Verified signatureebccbc4 -
Upload tokenizer.json with huggingface_hub
Verified signaturebb26b08 -
Upload tokenizer_config.json with huggingface_hub
Verified signaturecebc950 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature3a85513 -
Upload config.json with huggingface_hub
Verified signaturea3058e0 -
Upload special_tokens_map.json with huggingface_hub
Verified signature232a044 -
Update README.md
Verified signatureb7e665d -
Upload thinking_budget.png
Verified signature5b0d64a -
Update README.md
Verified signaturef62fe5f -
initial commit
Verified signature97cd9d9