Instructions to use kiel2/kiel-2-codex with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use kiel2/kiel-2-codex with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("kiel2/kiel-2-codex") model = PeftModel.from_pretrained(base_model, "kiel2/kiel-2-codex") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
Update README.md
Browse files
README.md
CHANGED
|
@@ -49,8 +49,9 @@ model = AutoModelForVision2Seq.from_pretrained(
|
|
| 49 |
device_map="auto"
|
| 50 |
)
|
| 51 |
processor = AutoProcessor.from_pretrained(model_id)
|
| 52 |
-
|
| 53 |
-
|
|
|
|
| 54 |
import torch
|
| 55 |
from transformers import AutoModelForVision2Seq, AutoProcessor
|
| 56 |
|
|
@@ -64,12 +65,13 @@ model = AutoModelForVision2Seq.from_pretrained(
|
|
| 64 |
device_map="auto"
|
| 65 |
)
|
| 66 |
processor = AutoProcessor.from_pretrained(model_id)
|
| 67 |
-
|
|
|
|
| 68 |
Base Model: Qwen/Qwen3-VL-4B-Instruct
|
| 69 |
|
| 70 |
Fine-Tuning Framework: Unsloth / Hugging Face TRL & PEFT
|
| 71 |
|
| 72 |
Task Focus: Multimodal code generation and structural layout analysis.
|
| 73 |
|
| 74 |
-
License
|
| 75 |
This model inherits the licensing structure of its base architecture under the Apache 2.0 License.
|
|
|
|
| 49 |
device_map="auto"
|
| 50 |
)
|
| 51 |
processor = AutoProcessor.from_pretrained(model_id)
|
| 52 |
+
```
|
| 53 |
+
#### Option B: Load the 16-bit Version (Full Precision)
|
| 54 |
+
```Python
|
| 55 |
import torch
|
| 56 |
from transformers import AutoModelForVision2Seq, AutoProcessor
|
| 57 |
|
|
|
|
| 65 |
device_map="auto"
|
| 66 |
)
|
| 67 |
processor = AutoProcessor.from_pretrained(model_id)
|
| 68 |
+
```
|
| 69 |
+
##### Training Details
|
| 70 |
Base Model: Qwen/Qwen3-VL-4B-Instruct
|
| 71 |
|
| 72 |
Fine-Tuning Framework: Unsloth / Hugging Face TRL & PEFT
|
| 73 |
|
| 74 |
Task Focus: Multimodal code generation and structural layout analysis.
|
| 75 |
|
| 76 |
+
###### License
|
| 77 |
This model inherits the licensing structure of its base architecture under the Apache 2.0 License.
|