Instructions to use ByteDance-Seed/Seed-OSS-36B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ByteDance-Seed/Seed-OSS-36B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ByteDance-Seed/Seed-OSS-36B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ByteDance-Seed/Seed-OSS-36B-Instruct") model = AutoModelForCausalLM.from_pretrained("ByteDance-Seed/Seed-OSS-36B-Instruct") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ByteDance-Seed/Seed-OSS-36B-Instruct 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-Instruct" # 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-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ByteDance-Seed/Seed-OSS-36B-Instruct
- SGLang
How to use ByteDance-Seed/Seed-OSS-36B-Instruct 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-Instruct" \ --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-Instruct", "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-Instruct" \ --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-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ByteDance-Seed/Seed-OSS-36B-Instruct with Docker Model Runner:
docker model run hf.co/ByteDance-Seed/Seed-OSS-36B-Instruct
mmlu评测和if_eval结果
#32 opened 5 months ago
by
cloudcc
Issues with Structured Output
#31 opened 7 months ago
by
LinYouyIFAD
请问下 如果想微调 能给个案列吗?
#30 opened 7 months ago
by
wa595566
Exceptional Release, This is The Most Powerful OSS Model for 24GB Cards
👍 4
1
#29 opened 8 months ago
by
AaronFeng753
super bad german
#28 opened 8 months ago
by
abiteddie
Prevent tokenizer calls from returning `token_type_ids`
❤️ 1
2
#26 opened 8 months ago
by
joaogante
Hiding Thinking Process
2
#25 opened 9 months ago
by
Xzendor7
Draft model for speculative decoding
➕ 4
#24 opened 9 months ago
by
oobabooga
这模型数学能力很强
2
#23 opened 9 months ago
by
pypry
Suppose I have 96g vram is it possible to do fine tuning?
1
#22 opened 9 months ago
by
win10
Would love to see coding version :)
👍 2
2
#21 opened 9 months ago
by
AekDevDev
chat_template:it keeps all thinking content?
1
#20 opened 9 months ago
by
TAnGx1411
Getting error when deploying on HF Inference with 2 A100 GPU's of AWS on region us-east
#19 opened 9 months ago
by
streebo
FP8 Quants Please
➕ 1
#18 opened 9 months ago
by
rjmehta
online demo please
👍 1
#15 opened 9 months ago
by
pypry
vram Requirements for full size
2
#14 opened 9 months ago
by
tazomatalax
demo Inference
➕ 2
#13 opened 9 months ago
by
devops724
bug in chat template?
1
#11 opened 9 months ago
by
J22
Why is the chat_template mixed with Chinese and English?
👍 2
5
#8 opened 9 months ago
by
Daucloud
is docker image available?
#7 opened 9 months ago
by
ZhifengKong
Deployment support for sglang
👍 3
#5 opened 9 months ago
by
XiChen0415
vllm error:operator _C::marlin_qqq_gemm does not exist
3
#4 opened 9 months ago
by
HourseCircle
Category Error
👍 1
1
#3 opened 9 months ago
by
CO-IR
Sorry for Askin here
👀 5
#2 opened 9 months ago
by
ryg81
Official vllm support
👀 2
1
#1 opened 9 months ago
by
shash42