Instructions to use Prince-1/Seed-Coder-8B-Instruct-RKllm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- RKLLM
How to use Prince-1/Seed-Coder-8B-Instruct-RKllm with RKLLM:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use Prince-1/Seed-Coder-8B-Instruct-RKllm with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Prince-1/Seed-Coder-8B-Instruct-RKllm to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Prince-1/Seed-Coder-8B-Instruct-RKllm to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Prince-1/Seed-Coder-8B-Instruct-RKllm to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Prince-1/Seed-Coder-8B-Instruct-RKllm", max_seq_length=2048, )
| INFO: rkllm-toolkit version: 1.2.1b1 | |
| Loading model | |
| Loading checkpoint shards: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 4/4 [00:02<00:00, 1.35it/s] | |
| /teamspace/studios/this_studio/RK | |
| /teamspace/studios/this_studio/RK/../data/datasets.json | |
| Building model | |
| Building model: 100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 423/423 [00:44<00:00, 9.53it/s] | |
| Build model success! | |
| Exporting model to: Seed-Coder-8B-Instruct.rkllm | |
| INFO: Setting chat_template to "<[beginβofβsentence]>system\nYou are an AI programming assistant, utilizing the Seed-Coder model, developed by ByteDance Seed, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.\n\n<[endβofβsentence]><[beginβofβsentence]>user\n[content]<[endβofβsentence]><[beginβofβsentence]>assistant\n" | |
| INFO: Setting token_id of bos to 0 | |
| INFO: Setting token_id of eos to 2 | |
| INFO: Setting token_id of sep to 6 | |
| INFO: Setting token_id of pad to 1 | |
| Converting model: 100%|ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 291/291 [00:00<00:00, 2097152.00it/s] | |
| INFO: Setting max_context_limit to 4096 | |
| INFO: Exporting the model, please wait .... | |
| [=================================================>] 681/681 (100%) | |
| INFO: Model has been saved to Seed-Coder-8B-Instruct.rkllm! |