Instructions to use ByteDance-Seed/Seed-Coder-8B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ByteDance-Seed/Seed-Coder-8B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ByteDance-Seed/Seed-Coder-8B-Base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ByteDance-Seed/Seed-Coder-8B-Base") model = AutoModelForCausalLM.from_pretrained("ByteDance-Seed/Seed-Coder-8B-Base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ByteDance-Seed/Seed-Coder-8B-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-Coder-8B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ByteDance-Seed/Seed-Coder-8B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ByteDance-Seed/Seed-Coder-8B-Base
- SGLang
How to use ByteDance-Seed/Seed-Coder-8B-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-Coder-8B-Base" \ --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": "ByteDance-Seed/Seed-Coder-8B-Base", "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 "ByteDance-Seed/Seed-Coder-8B-Base" \ --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": "ByteDance-Seed/Seed-Coder-8B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ByteDance-Seed/Seed-Coder-8B-Base with Docker Model Runner:
docker model run hf.co/ByteDance-Seed/Seed-Coder-8B-Base
Commit History
-
Update README.md
Verified signature049f843 -
Update README.md
Verified signature8094181
-
Update README.md
Verified signaturef325b24 -
Update README.md
Verified signaturea73c2c7 -
Delete imgs/seed-coder_intro_performance.jpg
Verified signature6314772 -
Update README.md
Verified signature42a110e -
Upload seed-coder_intro_performance.png
Verified signaturee391412
-
Update README.md
Verified signature6a6d746
-
Update README.md
Verified signature363f375
-
Update tokenizer_config.json
Verified signatureb50b2d6 -
Add Transformers metadata (#2)
Verified signature- Add Transformers metadata (c7a1a52ce14e9452f11d7aba93aa9d2f46354d35) Co-authored-by: Niels Rogge <[email protected]>02b9dba
-
Update README.md
Verified signature44d3e28 -
Update README.md
Verified signaturef3b7d63
-
Update README.md
Verified signature4130100 -
Update README.md
Verified signature535bf0e -
Update README.md
Verified signature4d689a6 -
Update README.md
Verified signaturef5ec8c7 -
Update README.md
Verified signature5ed1529 -
Update README.md
Verified signaturebb46339 -
Update README.md
Verified signature6a151ac -
Update README.md
Verified signature70a4fc3 -
Update README.md
Verified signature073c2e8 -
Update README.md
Verified signature3ebf33e -
Update README.md
Verified signature4db087a -
Update README.md
Verified signature5c70869 -
Update README.md
Verified signature678fc9c -
Update README.md
Verified signature0a7a24a -
Update README.md
Verified signature7a08fef -
Update README.md
Verified signature7c827df -
Update README.md
Verified signaturef14f107 -
Update README.md
Verified signature606a5df -
Update README.md
Verified signaturefc7611f -
Update README.md
Verified signaturec1b45a5 -
Update README.md
Verified signature8db9fbe -
Update README.md
Verified signature90598cf -
Update README.md
Verified signature7935afb -
Update README.md
Verified signature40743b7 -
Update README.md
Verified signaturedea23ca
-
Update tokenizer_config.json
Verified signature30c7358 -
Update README.md
Verified signature9a0aa68 -
Update README.md
Verified signature4d28a6b -
Delete imgs/large_model_comparison_split-crop.png
Verified signature69bee84 -
Update README.md
Verified signature2c93395 -
Upload seed-coder_intro_performance.jpg
Verified signatured5a23d9 -
Delete imgs/seed-coder_intro_performance.jpg
Verified signature27daf28 -
Update README.md
Verified signature6c84629
-
Update README.md
Verified signatureb0f0a84 -
Update README.md
Verified signaturee311b7c -
Update README.md
Verified signature5d7fdbf
-
Update README.md
Verified signatured686f61