Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# SVG-Master
|
| 2 |
|
|
|
|
|
|
|
| 3 |
SVG-Master is a specialized fine-tuned LLM designed for high-quality **SVG code generation**. It takes natural language descriptions and outputs clean, valid, and optimized SVG code for icons, illustrations, and graphics.
|
| 4 |
|
| 5 |
Built on top of **Llama 3.2 3B Instruct**, this model has been instruction-tuned specifically to understand geometry, color theory, and SVG syntax.
|
|
@@ -43,11 +61,8 @@ python -m mlx_lm.generate --model ./weights --adapter-path ./adapters --prompt "
|
|
| 43 |
You can run the dequantized/fused version of the model directly in Ollama.
|
| 44 |
|
| 45 |
```bash
|
| 46 |
-
#
|
| 47 |
-
ollama
|
| 48 |
-
|
| 49 |
-
# Run the model
|
| 50 |
-
ollama run svg-master "Generate a blue glowing circuit board icon"
|
| 51 |
```
|
| 52 |
|
| 53 |
### 3. Python API
|
|
@@ -64,17 +79,8 @@ print(response)
|
|
| 64 |
|
| 65 |
- `weights/`: Base 4-bit model weights and configuration.
|
| 66 |
- `adapters/`: LoRA adapter weights and training configuration.
|
| 67 |
-
- `weight_fused/`: Fully fused, dequantized BF16 model
|
| 68 |
- `data/`: Prepared training/validation datasets.
|
| 69 |
-
- `Modelfile`: Configuration for Ollama deployment.
|
| 70 |
-
|
| 71 |
-
## 🔄 Dequantization & Fusion
|
| 72 |
-
|
| 73 |
-
To recreate the original sized (FP16/BF16) model from the 4-bit weights and adapters:
|
| 74 |
-
|
| 75 |
-
```bash
|
| 76 |
-
uv run mlx_lm.fuse --model ./weights --adapter-path ./adapters --save-path ./weight_fused --dequantize
|
| 77 |
-
```
|
| 78 |
|
| 79 |
## 📜 License
|
| 80 |
|
|
@@ -84,3 +90,4 @@ This model inherits the [Llama 3.2 Community License Agreement](https://www.llam
|
|
| 84 |
|
| 85 |
- **HuggingFace**: [fahidnasir/SVG-Master](https://huggingface.co/fahidnasir/SVG-Master)
|
| 86 |
- **Kaggle**: [nfahid/svg-master](https://www.kaggle.com/models/nfahid/svg-master)
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
library_name: mlx
|
| 7 |
+
tags:
|
| 8 |
+
- mlx
|
| 9 |
+
- svg
|
| 10 |
+
- code-generation
|
| 11 |
+
- graphics
|
| 12 |
+
- vector-graphics
|
| 13 |
+
- apple-silicon
|
| 14 |
+
- llama
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
# SVG-Master
|
| 18 |
|
| 19 |
+
**Subtitle**: Expert SVG generation from natural language.
|
| 20 |
+
|
| 21 |
SVG-Master is a specialized fine-tuned LLM designed for high-quality **SVG code generation**. It takes natural language descriptions and outputs clean, valid, and optimized SVG code for icons, illustrations, and graphics.
|
| 22 |
|
| 23 |
Built on top of **Llama 3.2 3B Instruct**, this model has been instruction-tuned specifically to understand geometry, color theory, and SVG syntax.
|
|
|
|
| 61 |
You can run the dequantized/fused version of the model directly in Ollama.
|
| 62 |
|
| 63 |
```bash
|
| 64 |
+
# Pull the model from Ollama Hub
|
| 65 |
+
ollama run fahidnasir/svg-master "Generate a blue glowing circuit board icon"
|
|
|
|
|
|
|
|
|
|
| 66 |
```
|
| 67 |
|
| 68 |
### 3. Python API
|
|
|
|
| 79 |
|
| 80 |
- `weights/`: Base 4-bit model weights and configuration.
|
| 81 |
- `adapters/`: LoRA adapter weights and training configuration.
|
| 82 |
+
- `weight_fused/`: Fully fused, dequantized BF16 model.
|
| 83 |
- `data/`: Prepared training/validation datasets.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
## 📜 License
|
| 86 |
|
|
|
|
| 90 |
|
| 91 |
- **HuggingFace**: [fahidnasir/SVG-Master](https://huggingface.co/fahidnasir/SVG-Master)
|
| 92 |
- **Kaggle**: [nfahid/svg-master](https://www.kaggle.com/models/nfahid/svg-master)
|
| 93 |
+
- **Ollama**: [fahidnasir/svg-master](https://ollama.com/fahidnasir/svg-master)
|