danielhanchen commited on
Commit
ae1ed8f
·
verified ·
1 Parent(s): a311d58

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ Seed-Coder-8B-Instruct-UD-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Seed-Coder-8B-Instruct-UD-Q2_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Seed-Coder-8B-Instruct-UD-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Seed-Coder-8B-Instruct-UD-Q4_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Seed-Coder-8B-Instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Seed-Coder-8B-Instruct-UD-Q5_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - unsloth
4
+ license: mit
5
+ base_model:
6
+ - ByteDance-Seed/Seed-Coder-8B-Instruct
7
+ pipeline_tag: text-generation
8
+ library_name: transformers
9
+ ---
10
+ <div>
11
+ <p style="margin-top: 0;margin-bottom: 0;">
12
+ <em><a href="https://docs.unsloth.ai/basics/unsloth-dynamic-v2.0-gguf">Unsloth Dynamic 2.0</a> achieves superior accuracy & outperforms other leading quants.</em>
13
+ </p>
14
+ <div style="display: flex; gap: 5px; align-items: center; ">
15
+ <a href="https://github.com/unslothai/unsloth/">
16
+ <img src="https://github.com/unslothai/unsloth/raw/main/images/unsloth%20new%20logo.png" width="133">
17
+ </a>
18
+ <a href="https://discord.gg/unsloth">
19
+ <img src="https://github.com/unslothai/unsloth/raw/main/images/Discord%20button.png" width="173">
20
+ </a>
21
+ <a href="https://docs.unsloth.ai/basics/qwen3-how-to-run-and-fine-tune">
22
+ <img src="https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/documentation%20green%20button.png" width="143">
23
+ </a>
24
+ </div>
25
+ </div>
26
+
27
+
28
+ # Seed-Coder-8B-Instruct
29
+
30
+ <div align="left" style="line-height: 1;">
31
+ <a href="https://bytedance-seed-coder.github.io/" target="_blank" style="margin: 2px;">
32
+ <img alt="Homepage" src="https://img.shields.io/badge/Seed--Coder-Homepage-a468fe?color=a468fe&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
33
+ </a>
34
+
35
+ <a href="https://github.com/ByteDance-Seed/Seed-Coder/blob/master/Seed-Coder.pdf" target="_blank" style="margin: 2px;">
36
+ <img alt="Technical Report" src="https://img.shields.io/badge/(upcoming)-Technical%20Report-brightgreen?logo=arxiv&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
37
+ </a>
38
+
39
+ <a href="https://huggingface.co/ByteDance-Seed" target="_blank" style="margin: 2px;">
40
+ <img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-ByteDance%20Seed-536af5?color=536af5&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
41
+ </a>
42
+
43
+ <a href="https://github.com/ByteDance-Seed/Seed-Coder/blob/master/LICENSE" style="margin: 2px;">
44
+ <img alt="License" src="https://img.shields.io/badge/License-MIT-f5de53?color=f5de53&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
45
+ </a>
46
+ </div>
47
+
48
+
49
+ ## Introduction
50
+ We are thrilled to introduce Seed-Coder, a powerful, transparent, and parameter-efficient family of open-source code models at the 8B scale, featuring base, instruct, and reasoning variants. Seed-Coder contributes to promote the evolution of open code models through the following highlights.
51
+
52
+ - **Model-centric:** Seed-Coder predominantly leverages LLMs instead of hand-crafted rules for code data filtering, minimizing manual effort in pretraining data construction.
53
+ - **Transparent:** We openly share detailed insights into our model-centric data pipeline, including methods for curating GitHub data, commits data, and code-related web data.
54
+ - **Powerful:** Seed-Coder achieves state-of-the-art performance among open-source models of comparable size across a diverse range of coding tasks.
55
+
56
+ <p align="center">
57
+ <img width="100%" src="imgs/seed-coder_intro_performance.png">
58
+ </p>
59
+
60
+ This repo contains the **Seed-Coder-8B-Instruct** model, which has the following features:
61
+ - Type: Causal language models
62
+ - Training Stage: Pretraining & Post-training
63
+ - Data Source: Public datasets, synthetic data
64
+ - Context Length: 32,768
65
+
66
+
67
+ ## Model Downloads
68
+ | Model Name | Length | Download | Notes |
69
+ |---------------------------------------------------------|--------|------------------------------------|-----------------------|
70
+ | Seed-Coder-8B-Base | 32K | 🤗 [Model](https://huggingface.co/ByteDance-Seed/Seed-Coder-8B-Base) | Pretrained on our model-centric code data. |
71
+ | 👉 **Seed-Coder-8B-Instruct** | 32K | 🤗 [Model](https://huggingface.co/ByteDance-Seed/Seed-Coder-8B-Instruct) | Instruction-tuned for alignment with user intent. |
72
+ | Seed-Coder-8B-Reasoning | 64K | 🤗 [Model](https://huggingface.co/ByteDance-Seed/Seed-Coder-8B-Reasoning) | RL trained to boost reasoning capabilities. |
73
+ | Seed-Coder-8B-Reasoning-bf16 | 64K | 🤗 [Model](https://huggingface.co/ByteDance-Seed/Seed-Coder-8B-Reasoning-bf16) | RL trained to boost reasoning capabilities. |
74
+
75
+ ## Requirements
76
+ You will need to install the latest versions of `transformers` and `accelerate`:
77
+
78
+ ```bash
79
+ pip install -U transformers accelerate
80
+ ```
81
+
82
+ ## Quickstart
83
+
84
+ Here is a simple example demonstrating how to load the model and generate code using the Hugging Face `pipeline` API:
85
+
86
+ ```python
87
+ from transformers import AutoTokenizer, AutoModelForCausalLM
88
+ import torch
89
+
90
+ model_id = "ByteDance-Seed/Seed-Coder-8B-Instruct"
91
+
92
+ tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
93
+ model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto", trust_remote_code=True)
94
+
95
+ messages = [
96
+ {"role": "user", "content": "Write a quick sort algorithm."},
97
+ ]
98
+
99
+ input_ids = tokenizer.apply_chat_template(
100
+ messages,
101
+ tokenize=True,
102
+ return_tensors="pt",
103
+ add_generation_prompt=True,
104
+ ).to(model.device)
105
+
106
+ outputs = model.generate(input_ids, max_new_tokens=512)
107
+ response = tokenizer.decode(outputs[0][input_ids.shape[-1]:], skip_special_tokens=True)
108
+ print(response)
109
+
110
+ ```
111
+
112
+ ## Evaluation
113
+
114
+ Seed-Coder-8B-Instruct has been evaluated on a wide range of coding tasks, including code generation, code reasoning, code editing, and software engineering, achieving state-of-the-art performance among ~8B open-source models.
115
+
116
+ | Model | HumanEval | MBPP | MHPP | BigCodeBench (Full) | BigCodeBench (Hard) | LiveCodeBench (2410 – 2502) |
117
+ |:-----------------------------:|:---------:|:----:|:----:|:-------------------:|:-------------------:|:-------------------------:|
118
+ | CodeLlama-7B-Instruct | 40.9 | 54.0 | 6.7 | 25.7 | 4.1 | 3.6 |
119
+ | DeepSeek-Coder-6.7B-Instruct | 74.4 | 74.9 | 20.0 | 43.8 | 15.5 | 9.6 |
120
+ | CodeQwen1.5-7B-Chat | 83.5 | 77.7 | 17.6 | 43.6 | 15.5 | 3.0 |
121
+ | Yi-Coder-9B-Chat | 82.3 | 82.0 | 26.7 | 49.0 | 17.6 | 17.5 |
122
+ | Llama-3.1-8B-Instruct | 68.3 | 70.1 | 17.1 | 40.5 | 13.5 | 11.5 |
123
+ | OpenCoder-8B-Instruct | 83.5 | 79.1 | 30.5 | 50.9 | 18.9 | 17.1 |
124
+ | Qwen2.5-Coder-7B-Instruct | **88.4** | 83.5 | 26.7 | 48.8 | 20.3 | 17.3 |
125
+ | Qwen3-8B | 84.8 | 77.0 | 32.8 | 51.7 | 23.0 | 23.5 |
126
+ | Seed-Coder-8B-Instruct | 84.8 | **85.2** | **36.2** | **53.3** | **26.4** | **24.7** |
127
+
128
+
129
+ For detailed benchmark performance, please refer to our [📑 Technical Report](https://github.com/ByteDance-Seed/Seed-Coder/blob/master/Seed-Coder.pdf).
130
+
131
+ ## License
132
+
133
+ This project is licensed under the MIT License. See the [LICENSE file](https://github.com/ByteDance-Seed/Seed-Coder/blob/master/LICENSE) for details.
134
+
135
+ <!-- ## Citation
136
+
137
+ If you find our work helpful, feel free to give us a cite.
138
+
139
+ ```
140
+ @article{zhang2025seedcoder,
141
+ title={Seed-Coder: Let the Code Model Curate Data for Itself},
142
+ author={Xxx},
143
+ year={2025},
144
+ eprint={2504.xxxxx},
145
+ archivePrefix={arXiv},
146
+ primaryClass={cs.CL},
147
+ url={https://arxiv.org/abs/xxxx.xxxxx},
148
+ }
149
+ ``` -->
Seed-Coder-8B-Instruct-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb85a42e65b1efda94d0b341331f647db2dc46539f262d996136d65fc7c4d1fa
3
+ size 5071410624
Seed-Coder-8B-Instruct-UD-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aefa304d0c9b0cbc0cdda22ed07e16cf9c5ec07a8b3bce040d85fbc17d77c9fd
3
+ size 2301695424
Seed-Coder-8B-Instruct-UD-Q2_K_XL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0080f761029af2fc30d929ed3e7474dace18e48db7d1ca9c5e1a22a166760eee
3
+ size 3539441088
Seed-Coder-8B-Instruct-UD-Q3_K_XL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e17be66596fe67963aa4d370cbcaa5d73696d9062f0cfffe38f42bd268727fe3
3
+ size 4342486464
Seed-Coder-8B-Instruct-UD-Q4_K_XL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c27187956ab4412d902f3c2b8a6c23626b2fcf44fe6fe650b0bc285d6b2de13
3
+ size 5160015296
Seed-Coder-8B-Instruct-UD-Q5_K_XL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2d1fc51b67a5d317f0f5753f350c5fac68f23d332a530ee486d7497d875b609
3
+ size 5896148416
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 4096,
12
+ "initializer_range": 0.009882118,
13
+ "intermediate_size": 14336,
14
+ "layer_norm_eps": null,
15
+ "max_position_embeddings": 32768,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 32,
19
+ "num_hidden_layers": 32,
20
+ "num_key_value_heads": 8,
21
+ "pad_token_id": 1,
22
+ "pretraining_tp": 1,
23
+ "resid_pdrop": 0.1,
24
+ "rms_norm_eps": 1e-06,
25
+ "rope_scaling": null,
26
+ "rope_theta": 500000.0,
27
+ "tie_word_embeddings": false,
28
+ "torch_dtype": "bfloat16",
29
+ "transformers_version": "4.51.3",
30
+ "unsloth_fixed": true,
31
+ "use_cache": true,
32
+ "vocab_size": 155136
33
+ }