9 Downloads Updated 3 weeks ago
ollama run alluri-ai-projects/radix-ui-generation-react
A specialized fine-tuned coding assistant based on Qwen2.5-Coder, optimized to generate production-ready, single-file React components adhering strictly to Radix UI, Tailwind CSS, and TypeScript design patterns while eliminating framework styling hallucinations.
| Attribute | Specification |
|---|---|
| Base Model | Qwen2.5-Coder (Fine-tuned via MLX LoRA adapters) |
| Quantization Format | GGUF Q8_0 (8-bit optimization for local unified memory) |
| Inference Runtime | Ollama (llama.cpp backend) / OpenAI-compatible API |
| Context Window | 4,096 tokens (num_ctx) |
| Temperature | 0.1 (deterministic output to suppress syntax/library hallucinations) |
| Primary Domain | Single-file React 19, TypeScript, Radix UI primitives, and Zustand state management |
The model has been explicitly trained and constrained to adhere to the following architectural rules:
1. Single-File Scope: All sub-components, helper hooks, state stores, and skeleton fallbacks must be self-contained within a single exportable file to prevent multi-file import errors.
2. Strict UI Library Enforcement:
- Uses Radix UI primitives and CSS variables exclusively.
- Strictly prohibits Material UI syntax (createTheme, ThemeProvider).
- Forbids invalid imports like useTheme from @radix-ui/themes (enforces next-themes pattern where applicable).
Ensure you have Ollama installed and running on your local system.
Place your quantized GGUF weights file (e.g., radix-ui-react-components-generation-aug-04-26.gguf) alongside the configuration Modelfile in a dedicated directory.
Modelfile Configuration:
FROM ./radix-ui-react-components-generation-aug-04-26.gguf
PARAMETER temperature 0.1
PARAMETER num_ctx 4096
TEMPLATE """{{ if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
{{ end }}<|im_start|>assistant
"""
Run the following command in your model directory:
ollama create radix-ui-agent -f Modelfile
Verify the installation:
ollama list
ollama run alluri-ai-projects/radix-ui-generation-react
ollama run alluri-ai-projects/radix-ui-generation-react "Create a responsive Bento grid component using Radix UI primitives and Zustand."
The local Ollama server exposes an OpenAI-compatible API endpoint on port 11434. Configure your LangChain or LangGraph agent backend (nodes.py) as follows:
from langchain_openai import ChatOpenAI
coder = ChatOpenAI(
model="radix-ui-agent",
openai_api_base="http://host.docker.internal:11434/v1", # Or http://localhost:11434/v1 if running natively
openai_api_key="ollama", # Placeholder required by client wrapper
temperature=0.1,
max_tokens=1500
)