AnuragMahajan commited on
Commit
a9623ee
Β·
verified Β·
1 Parent(s): 2424388

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +349 -0
README.md ADDED
@@ -0,0 +1,349 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ library_name: transformers
6
+ pipeline_tag: text-generation
7
+ tags:
8
+ - qwen3
9
+ - coding
10
+ - fine-tuned
11
+ - autonomous-agent
12
+ - software-engineering
13
+ base_model: Qwen/Qwen3.6-27B
14
+ ---
15
+
16
+ # Coder β€” Qwen3.6-4B Coding & Autonomous Software Engineering Model
17
+
18
+ A fine-tuned 4B-parameter variant of **Qwen3.6** specialized for autonomous software engineering, code generation, debugging, repository exploration, terminal/shell agent behavior, Git operations, database/SQL, web development, DevOps, security, performance, architecture, and full multi-file feature implementation.
19
+
20
+ > **Verified facts:** This repository contains `qwen3.6--coder.safetensors` (8.8 GB, BF16), a 20,000-example instruction dataset (`coding-finetune-dataset/dataset.jsonl`), training notes (`qwen3.6-4B.txt`), and dataset creation docs (`coding-finetune-dataset/CREATE_INSTRUCTIONS.md`).
21
+
22
+ ---
23
+
24
+ ## Model Overview
25
+
26
+ `Coder` is intended as an autonomous software engineering assistant that can investigate repositories, identify problems, implement solutions, edit files, run tests, use Git, write SQL, and complete multi-step tasks independently. It was fine-tuned on a comprehensive 20,000-example dataset covering 20 engineering categories (A–U) across Python, JavaScript/TypeScript, Java, C/C++, Go, Rust, Bash, SQL, HTML/CSS, React/Node, DevOps, and more.
27
+
28
+ **What makes it different:** The dataset is designed around realistic workflow scenarios β€” not just code snippets β€” including debugging loops, repository exploration, file editing with minimal changes, multi-file feature implementation, verification steps, and repair loops.
29
+
30
+ ---
31
+
32
+ ## Model Details
33
+
34
+ | Property | Value (verified from repository) |
35
+ | --------------- | --------------------------------- |
36
+ | Model type | Causal language model (fine-tuned) |
37
+ | Architecture | Qwen3.6 (Transformer, GQA) |
38
+ | Parameters | 4B (from `qwen3.6-4B.txt`) |
39
+ | Layers | 5 (from weight key analysis: `layers.0`–`layers.4`) |
40
+ | Hidden size | 5120 (from weight shapes) |
41
+ | Attention heads | 32 Q heads, 8 KV heads, head_dim=128 (from `q_proj`/`k_proj`/`v_proj` shapes) |
42
+ | Context length | Not specified in repository |
43
+ | Vocabulary size | 248,320 (from `embed_tokens.weight` / `lm_head.weight`) |
44
+ | Data type | BF16 (`tensor type: BF16` per notes) |
45
+ | Quantization | Not specified |
46
+ | Base model | Qwen3.6 (notes reference `Qwen/Qwen3.6-27B` for the upstream draft head; this weight file is a 4B fine-tune) |
47
+ | Training method | Supervised fine-tuning (SFT) on 20k instruction examples |
48
+ | License | Apache 2.0 (`coding-finetune-dataset/README.md`) |
49
+
50
+ ---
51
+
52
+ ## Intended Use
53
+
54
+ Appropriate use cases based on the actual dataset and model:
55
+
56
+ - Code generation (Python, JS/TS, Java, C/C++, Go, Rust, SQL, Bash, HTML/CSS, React, Node)
57
+ - Bug finding and debugging workflow (reproduce, isolate, identify root cause, patch, test, verify)
58
+ - Repository exploration (structure analysis, framework identification, dependency tracing)
59
+ - File editing (minimal changes, preserving style, updating imports/tests)
60
+ - Multi-file feature implementation (auth, payments, uploads, notifications, caching, logging, error handling)
61
+ - Terminal/shell agent behavior (`pwd`, `ls`, `find`, `grep`, `git`, `python`, `npm`, `docker`, etc.)
62
+ - Git operations (`status`, `diff`, `log`, `branch`, `rebase`, `cherry-pick`, `bisect`)
63
+ - Database / SQL (SELECT, INSERT, UPDATE, JOIN, CTE, window functions, transactions, indexes)
64
+ - Web development (React + TypeScript frontend; Express / FastAPI backend)
65
+ - DevOps / CI/CD (Docker, Docker Compose, GitHub Actions, deployment)
66
+ - Security review (SQL injection, XSS, CSRF, auth mistakes, secret leakage, path traversal)
67
+ - Performance optimization (slow algorithms, memory, query optimization, caching, concurrency)
68
+ - Architecture planning (monoliths vs microservices, event-driven, queues, caching)
69
+ - Full autonomous coding tasks (iterative debugging, verification loops)
70
+
71
+ ---
72
+
73
+ ## Not Intended For
74
+
75
+ - Real-time production inference without evaluation (no benchmark results provided)
76
+ - Medical, legal, or high-stakes decision-making without human review
77
+ - Generating malicious code (security risks remain; model can discuss vulnerabilities but should not be used to create exploits)
78
+ - Guaranteed factual accuracy (hallucinations and incorrect code may occur; always verify outputs)
79
+ - Replacement for professional code review (model assists, does not replace expert review)
80
+ - Use in contexts requiring guaranteed deterministic output (sampling parameters not verified)
81
+
82
+ ---
83
+
84
+ ## Training
85
+
86
+ **Verified from `coding-finetune-dataset/README.md` and `CREATE_INSTRUCTIONS.md`:**
87
+
88
+ - **Base model:** Qwen3.6 (4B parameter scale; upstream reference is Qwen3.6-27B for the draft-head variant documented in notes)
89
+ - **Dataset:** `coding-finetune-dataset/dataset.jsonl` β€” 20,000 examples (full dataset at `dataset_full_20k.jsonl`; deduplicated at `dataset_deduplicated.jsonl`)
90
+ - **Dataset source:** Synthetic generation via autonomous agent process (`generate_full_dataset.py`, `generate_examples.py`, `merge.py`); categories A–U with ~1,000 examples each; languages distributed across Python (20%), JS (15%), TS (15%), SQL (10%), Java (8%), C++ (7%), C (5%), Go/Rust/Bash (5% each), Other (5%)
91
+ - **Example format:** Chat-style JSON lines with `messages` array (`system`, `user`, `assistant`) and `metadata` (category, language, difficulty, task_type, tools_used, requires_terminal/editing/testing, generated_at, version, example_id)
92
+ - **Difficulty:** Easy 15%, Medium 35%, Hard 35%, Expert 15% (per `CREATE_INSTRUCTIONS.md`)
93
+ - **Training objective:** Supervised fine-tuning on instruction-following and autonomous engineering workflows
94
+ - **Framework:** Not specified in repository
95
+ - **Hardware / GPUs / duration / epochs / batch size / learning rate:** Not specified in repository (only dataset generation scripts and statistics exist; no `training_config.json` or `trainer_state.json` found)
96
+
97
+ > **Not verified from repository:** Training hyperparameters (learning rate, batch size, epochs, optimizer, scheduler, sequence length, GPU count, training duration, framework, exact base-model initialization weights beyond the 4B file).
98
+
99
+ ---
100
+
101
+ ## Dataset
102
+
103
+ | Property | Value (verified) |
104
+ | -------- | ----------------- |
105
+ | Name | `coding-finetune-dataset` |
106
+ | Source | Generated locally (scripts in `coding-finetune-dataset/scripts/`) |
107
+ | Size | 20,000 examples (full dataset 29.6 MB; `dataset.jsonl`) |
108
+ | Format | JSON Lines (`.jsonl`) with chat-style messages |
109
+ | Categories | 20 categories (A–U): Code Generation, Bug Finding, Terminal/Shell, Repository Exploration, File Editing, Multi-File Implementation, Debugging Workflow, Testing, Git, Database/SQL, Web Development, DevOps, Security, Performance, Code Review, Architecture, Requirementβ†’Implementation, Error Message Interpretation, Agent Tool Use, Verification, Repair Loop, Full Autonomous Coding Tasks |
110
+ | Languages | Python, JavaScript, TypeScript, SQL, Java, C++, C, Go, Rust, Bash/Linux, HTML/CSS, React, Node, Express, FastAPI |
111
+ | Difficulty | Easy / Medium / Hard / Expert |
112
+ | Tools used (per example) | `read_file`, `edit_file`, `run_tests`, `run_terminal`, `git_*`, etc. |
113
+ | Deduplicated version | `dataset_deduplicated.jsonl` (29.5 MB) |
114
+ | Validation script | `validate_dataset.py` |
115
+ | Sample | `samples/sample_100.jsonl` (100 examples, all Bug Finding / JavaScript / Hard) |
116
+ | Batch scripts | `batch_001.jsonl` through `batch_024.jsonl` (generated in batches) |
117
+
118
+ **Data licensing:** Apache 2.0 (from dataset README). The dataset was generated through simulated coding scenarios and does not contain real-world sensitive information.
119
+
120
+ ---
121
+
122
+ ## Architecture
123
+
124
+ The weight file (`qwen3.6--coder.safetensors`) contains the following verified architecture components (extracted from tensor names and shapes):
125
+
126
+ - **Transformer decoder** with 5 layers (`layers.0`–`layers.4`)
127
+ - **Hidden size:** 5120
128
+ - **MLP intermediate:** 17408 (Gated MLP with `gate_proj`, `up_proj`, `down_proj`)
129
+ - **Attention:** Multi-head self-attention with GQA (32 Q heads, 8 KV heads, head_dim=128)
130
+ - **Normalization:** RMSNorm / LayerNorm (`norm.weight`, `hidden_norm.weight`, `input_layernorm.weight`, `post_attention_layernorm.weight`)
131
+ - **Embeddings:** `embed_tokens.weight` [248320, 5120]
132
+ - **LM head:** `lm_head.weight` [248320, 5120]
133
+ - **Speculative-decoding head (DSpark-style):** `confidence_head.proj.weight` [1, 5376], `markov_head.markov_w1.weight` [248320, 256], `markov_head.markov_w2.weight` [248320, 256]
134
+ - **Position encoding:** Not specified in weights (likely RoPE or ALiBi; not verified)
135
+ - **Activation:** Not specified (GELU / SwiGLU typical for Qwen)
136
+
137
+ > **Note:** The file is named `qwen3.6--coder.safetensors` (double dash) and is 8.8 GB. The notes (`qwen3.6-4B.txt`) reference a 27B upstream draft head (`abstract-extraordinary/Qwen3.6-27B-DSpark`) and describe speculative-decoding benchmarks at 8-speculative-token configuration. The weight file here is a 4B fine-tune for coding/autonomous-agent use.
138
+
139
+ ---
140
+
141
+ ## Tokenizer
142
+
143
+ > **Not verified from repository:** No `tokenizer.json`, `tokenizer_config.json`, `special_tokens_map.json`, or `generation_config.json` is present in this directory. The dataset uses chat-format messages (`system`/`user`/`assistant`) consistent with Qwen3's chat template, but the exact tokenizer configuration must be loaded from the base Qwen3.6 model or provided separately.
144
+
145
+ **Recommended token usage:** Load tokenizer from the base `Qwen/Qwen3.6-27B` (or equivalent 4B tokenizer) and apply the standard Qwen3 chat template (`<|im_start|>system...<|im_end|>...`) when formatting messages.
146
+
147
+ ---
148
+
149
+ ## Usage
150
+
151
+ ```python
152
+ from transformers import AutoTokenizer, AutoModelForCausalLM
153
+
154
+ # Replace with your actual upload path
155
+ model_id = "YOUR_USERNAME/coder-qwen3.6-4b"
156
+
157
+ tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
158
+ model = AutoModelForCausalLM.from_pretrained(
159
+ model_id,
160
+ torch_dtype="auto",
161
+ device_map="auto"
162
+ )
163
+
164
+ messages = [
165
+ {"role": "system", "content": "You are Coder, an autonomous software engineering assistant..."},
166
+ {"role": "user", "content": "Find the JWT expiration issue in src/auth/middleware.js and fix it."}
167
+ ]
168
+
169
+ inputs = tokenizer.apply_chat_template(
170
+ messages,
171
+ add_generation_prompt=True,
172
+ return_tensors="pt"
173
+ ).to(model.device)
174
+
175
+ outputs = model.generate(
176
+ inputs,
177
+ max_new_tokens=1024,
178
+ do_sample=True,
179
+ temperature=0.7,
180
+ top_p=0.95
181
+ )
182
+
183
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
184
+ ```
185
+
186
+ > **Note:** The repository does not include `tokenizer.json`. Use the base Qwen3.6 tokenizer (or download it separately) and verify chat-template compatibility before inference.
187
+
188
+ ---
189
+
190
+ ## Generation Parameters
191
+
192
+ Not verified from repository. Recommended values (based on dataset notes and typical Qwen3 settings):
193
+
194
+ - `temperature`: 0.7 (used in dataset regeneration notes)
195
+ - `top_p`: 0.95
196
+ - `max_new_tokens`: 256–1024 depending on task complexity
197
+ - `do_sample`: `True` for diverse responses; `False` (greedy) for deterministic debugging
198
+ - `repetition_penalty`: 1.05–1.1 (typical)
199
+
200
+ ---
201
+
202
+ ## Hardware Requirements
203
+
204
+ Not verified exactly. Estimates based on 4B parameters + BF16:
205
+
206
+ - **Minimum:** GPU with ~10 GB VRAM (BF16, 4B model ~8 GB weights; inference overhead requires additional memory)
207
+ - **Recommended:** 16–24 GB VRAM GPU (NVIDIA A10, RTX 4090, L4, A100 40GB for batch inference)
208
+ - **CPU:** Possible with `torch_dtype="float32"` but very slow; not recommended
209
+ - **RAM:** 16 GB system RAM minimum; 32 GB for dataset loading / training
210
+ - **Disk:** ~9 GB for model weights + ~30 MB for dataset + dependencies
211
+ - **Quantized options:** Not present in repository; can try `bitsandbytes` 4-bit / 8-bit if needed
212
+
213
+ ---
214
+
215
+ ## Quantization
216
+
217
+ No quantized versions (`quantize_*.py`, `*.gguf`, `*.q4_*.safetensors`, `adapter_config.json`) are present in the repository. The weight file is full-precision/bf16 (`qwen3.6--coder.safetensors`).
218
+
219
+ ---
220
+
221
+ ## Performance / Benchmarks
222
+
223
+ > **No formal benchmark results are currently provided for this fine-tuned model.**
224
+
225
+ The repository contains only dataset-generation statistics (`scripts/batch_*_stats.json`, `dataset.jsonl` statistics) and notes referencing upstream DSpark speculative-decoding benchmarks (for a separate 27B draft-head model, not this 4B fine-tune). No accuracy, perplexity, BLEU, ROUGE, HumanEval, MBPP, or agent-evaluation scores exist in this directory.
226
+
227
+ ---
228
+
229
+ ## Limitations
230
+
231
+ - **Evaluation:** No formal evaluation results provided for this fine-tuned model.
232
+ - **Context length:** Not verified from repository.
233
+ - **Base model dependency:** Fine-tuned from Qwen3.6; exact initialization weights not documented beyond the 4B file.
234
+ - **Tokenizer:** Not included; must use base Qwen3.6 tokenizer.
235
+ - **Quantization:** Not supported out of this repo.
236
+ - **Hallucination:** Like all LLMs, output may contain incorrect code, outdated APIs, or missing error handling. Always verify generated code with tests.
237
+ - **Domain:** Trained primarily on simulated software-engineering scenarios; performance in specialized domains (embedded, real-time, high-security) is not guaranteed.
238
+ - **Safety:** The dataset includes security-related examples (SQL injection, XSS, auth mistakes) for educational/debugging purposes. Do not use model outputs to construct exploits.
239
+
240
+ ---
241
+
242
+ ## Bias, Safety and Responsible Use
243
+
244
+ The dataset is synthetic (simulated coding scenarios) and does not contain real-world personal data. However:
245
+
246
+ - The model may reproduce biases present in synthetic training data (e.g., over-representation of common frameworks, under-representation of niche languages).
247
+ - Security examples describe vulnerabilities; the model should not be used to generate malicious payloads.
248
+ - Generated code should always be reviewed by a human engineer and tested before deployment.
249
+ - No formal safety evaluation (toxicity, fairness, adversarial robustness) has been conducted for this fine-tune.
250
+
251
+ ---
252
+
253
+ ## Repository Structure
254
+
255
+ ```text
256
+ .
257
+ β”œβ”€β”€ qwen3.6--coder.safetensors # Fine-tuned weights (BF16, 8.8 GB)
258
+ β”œβ”€β”€ qwen3.6-4B.txt # Training notes, datasets, upstream references, benchmark notes
259
+ β”œβ”€β”€ coding-finetune-dataset/ # 20,000-example instruction dataset
260
+ β”‚ β”œβ”€β”€ dataset.jsonl # Main dataset
261
+ β”‚ β”œβ”€β”€ dataset_deduplicated.jsonl # Deduplicated version
262
+ β”‚ β”œβ”€β”€ dataset_full_20k.jsonl # Full dataset backup
263
+ β”‚ β”œβ”€β”€ README.md # Dataset documentation
264
+ β”‚ β”œβ”€β”€ CREATE_INSTRUCTIONS.md # Dataset generation instructions
265
+ β”‚ β”œβ”€β”€ validate_dataset.py # Validation script
266
+ β”‚ β”œβ”€β”€ samples/
267
+ β”‚ β”‚ └── sample_100.jsonl # 100-example sample
268
+ β”‚ └── scripts/
269
+ β”‚ β”œβ”€β”€ generate_full_dataset.py # Dataset generation
270
+ β”‚ β”œβ”€β”€ generate_examples.py # Example creation
271
+ β”‚ β”œβ”€β”€ merge.py # Batch merging
272
+ β”‚ β”œβ”€β”€ deduplicate.py # Deduplication
273
+ β”‚ β”œβ”€β”€ batch_001.jsonl ... batch_024.jsonl # Batch outputs
274
+ β”‚ └── batch_*_stats.json # Per-batch statistics
275
+ β”œβ”€β”€ dataset-n/ # Empty directory (not used)
276
+ β”œβ”€β”€ scripts/ # Additional script directory
277
+ β”‚ β”œβ”€β”€ examples_001.jsonl # 100 examples (Bug Finding / JS / Hard)
278
+ β”‚ └── examples_stats_001.json # Stats for examples
279
+ └── .claude/ # Claude settings
280
+ ```
281
+
282
+ ---
283
+
284
+ ## Citation
285
+
286
+ If using this model or dataset, please cite sources present in repository:
287
+
288
+ - Base architecture: Qwen3.6 (Qwen Team)
289
+ - Upstream draft-head reference: `abstract-extraordinary/Qwen3.6-27B-DSpark`
290
+ - Dataset: `coding-finetune-dataset/` (local generation via scripts in repo)
291
+ - Licensing: Apache 2.0
292
+
293
+ ---
294
+
295
+ ## FAQ
296
+
297
+ ### What is this model?
298
+ A fine-tuned 4B-parameter Qwen3.6 model for autonomous software engineering tasks, trained on 20,000 instruction examples covering code generation, debugging, repository exploration, file editing, Git, SQL, web/devops, security, architecture, and full autonomous workflows.
299
+
300
+ ### What is the model based on?
301
+ Qwen3.6 (base model; exact 4B/27B initialization not fully documented; weight file is 4B scale). The upstream reference for the speculative-decoding draft head is `abstract-extraordinary/Qwen3.6-27B-DSpark`, but this weight file is a separate 4B coding fine-tune.
302
+
303
+ ### How many parameters does it have?
304
+ 4B (verified from `qwen3.6-4B.txt`). Weight analysis shows 5 layers, hidden size 5120, vocab 248,320, MLP intermediate 17408, 32 attention heads / 8 KV heads.
305
+
306
+ ### What hardware do I need?
307
+ Not fully specified; estimate 10–16 GB VRAM for BF16 inference, 24 GB recommended for comfortable batch use.
308
+
309
+ ### Can I run it locally?
310
+ Yes via `transformers` with a GPU. CPU inference is possible but not recommended. No quantized files included; use `bitsandbytes` if needed.
311
+
312
+ ### Does it support Transformers?
313
+ Not explicitly tested in repo, but `library_name: transformers` is standard for `safetensors` weights and Qwen3 architecture.
314
+
315
+ ### Does it support quantization?
316
+ No quantized versions provided. Full BF16 weights only.
317
+
318
+ ### Is it instruction tuned?
319
+ Yes. The dataset is instruction-formatted (`messages: [{role: system/user/assistant}]`).
320
+
321
+ ### What languages does it support?
322
+ English (system/user/assistant prompts). The dataset covers Python, JS/TS, Java, C/C++, Go, Rust, Bash, SQL, HTML/CSS, React, Node/Express/FastAPI. The model itself is text-based; performance in non-English contexts is not verified.
323
+
324
+ ---
325
+
326
+ ## Changelog
327
+
328
+ ### v1.0.0 (initial release β€” repository state 2026-09-26)
329
+ - Fine-tuned weights: `qwen3.6--coder.safetensors`
330
+ - Instruction dataset: 20,000 examples (`coding-finetune-dataset/`)
331
+ - License: Apache 2.0
332
+ - Notes: `qwen3.6-4B.txt` (datasets, upstream references, benchmark context)
333
+
334
+ ---
335
+
336
+ ## Verification Report (for this README)
337
+
338
+ From inspection of `/home/andy/Desktop/Coder-14B`:
339
+
340
+ 1. **Model name:** Coder / qwen3.6--coder (from file name `qwen3.6--coder.safetensors`)
341
+ 2. **Architecture:** Qwen3.6 Transformer (5 layers, hidden 5120, 32 Q / 8 KV heads, head_dim 128, vocab 248,320, MLP 17408, GQA, BF16)
342
+ 3. **Parameter count:** 4B (from `qwen3.6-4B.txt`)
343
+ 4. **Context length:** Not specified in repository
344
+ 5. **Base model:** Qwen3.6 (notes reference `Qwen/Qwen3.6-27B` for upstream draft head; weight is 4B fine-tune)
345
+ 6. **Training method:** Supervised fine-tuning (SFT) on synthetic 20k instruction dataset (dataset generation scripts verified; no explicit `training_config.json` found)
346
+ 7. **Dataset:** `coding-finetune-dataset/dataset.jsonl` (20k examples, 20 categories, multi-language)
347
+ 8. **License:** Apache 2.0 (`coding-finetune-dataset/README.md`)
348
+ 9. **Inference framework:** Not explicitly verified; `transformers` expected (`library_name: transformers` in YAML)
349
+ 10. **Not verified:** Tokenizer files, exact base-model init weights, training hyperparameters (LR, epochs, batch size, optimizer, scheduler, sequence length, GPU count, duration), benchmark results, quantization configs, adapter configs, context length, chat-template exact format.