RayyTien commited on
Commit
56cb1e6
·
verified ·
1 Parent(s): eb2afb0

Add UIUX LoRA adapter and bundled model card

Browse files
Files changed (1) hide show
  1. README.md +46 -13
README.md CHANGED
@@ -1,25 +1,58 @@
1
  ---
2
- library_name: mlx
3
  license: apache-2.0
4
  license_link: https://ai.google.dev/gemma/docs/gemma_4_license
5
- pipeline_tag: any-to-any
 
6
  tags:
7
- - mlx
8
- base_model: google/gemma-4-e2b-it
 
 
 
 
 
 
 
9
  ---
10
 
11
- # mlx-community/gemma-4-e2b-it-4bit
12
 
13
- This model was converted to MLX format from [`google/gemma-4-e2b-it`](https://huggingface.co/google/gemma-4-e2b-it)
14
- using mlx-vlm version **0.4.3**.
15
- Refer to the [original model card](https://huggingface.co/google/gemma-4-e2b-it) for more details on the model.
16
 
17
- ## Use with mlx
18
 
19
- ```bash
20
- pip install -U mlx-vlm
21
- ```
 
 
 
 
 
 
 
22
 
23
  ```bash
24
- python -m mlx_vlm.generate --model mlx-community/gemma-4-e2b-it-4bit --max-tokens 100 --temperature 0.0 --prompt "Describe this image." --image <path_to_image>
 
 
 
 
 
 
 
 
 
25
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  license: apache-2.0
3
  license_link: https://ai.google.dev/gemma/docs/gemma_4_license
4
+ base_model: mlx-community/gemma-4-e2b-it-4bit
5
+ library_name: mlx-vlm
6
  tags:
7
+ - mlx
8
+ - mlx-vlm
9
+ - lora
10
+ - gemma4
11
+ - ui
12
+ - ux
13
+ - frontend
14
+ - design-review
15
+ pipeline_tag: text-generation
16
  ---
17
 
18
+ # Gemma 4 E2B UI/UX LoRA Adapter
19
 
20
+ Bundled MLX repo containing the `mlx-community/gemma-4-e2b-it-4bit` base model files plus a UI/UX LoRA adapter.
 
 
21
 
22
+ This is **not a fused model**. The base weights and LoRA adapter are stored in the same repository so users can download one repo, then pass the same directory as both `--model` and `--adapter-path`.
23
 
24
+ The adapter was tuned on UI/UX frontend guidance converted from:
25
+
26
+ - `nextlevelbuilder/ui-ux-pro-max-skill` - MIT
27
+ - `pbakaus/impeccable` - Apache-2.0
28
+
29
+ ## Intended Use
30
+
31
+ Frontend UI/UX critique, React/Next.js/Tailwind implementation guidance, design anti-pattern review, accessibility and responsive layout recommendations.
32
+
33
+ ## Usage
34
 
35
  ```bash
36
+ pip install mlx-vlm
37
+ hf download RayyTien/gemma-4-e2b-uiux-lora --local-dir ./gemma-e2b-uiux
38
+
39
+ python -m mlx_vlm.generate \
40
+ --model ./gemma-e2b-uiux \
41
+ --adapter-path ./gemma-e2b-uiux \
42
+ --system "You are a senior frontend engineer and UI/UX reviewer. Give concrete implementation-ready guidance." \
43
+ --prompt "Review this SaaS dashboard UI: nested cards, purple gradients, tiny gray labels, and no loading state." \
44
+ --max-tokens 320 \
45
+ --temperature 0.0
46
  ```
47
+
48
+ ## Training Summary
49
+
50
+ See `training_args.json` and `dataset_summary.json`.
51
+
52
+ Important caveat: this adapter was trained locally with a patched `mlx-vlm` Gemma 4 loader because the unpatched loader did not instantiate K/V projections for weights present in the checkpoint. If vanilla `mlx-vlm` fails to load this model, use the same local patch or wait for upstream Gemma 4 loader support to catch up.
53
+
54
+ ## Known Limitations
55
+
56
+ - This is a bundled base-model-plus-adapter repo, not a fused full fine-tuned checkpoint.
57
+ - The adapter improves UI/UX vocabulary and critique style, but should still be evaluated against real frontend tasks before production use.
58
+ - The converted dataset is guidance-heavy; add more paired bad/good UI implementation examples for stricter behavior.