Text Generation
Transformers
Safetensors
English
Chinese
qwen3
trl
gpt_oss
code
ui
web
.tsx
.html
.css
abliterated
text-generation-inference
web-ui
conversational
Instructions to use prithivMLmods/Muscae-Qwen3-UI-Code-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Muscae-Qwen3-UI-Code-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Muscae-Qwen3-UI-Code-4B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/Muscae-Qwen3-UI-Code-4B") model = AutoModelForCausalLM.from_pretrained("prithivMLmods/Muscae-Qwen3-UI-Code-4B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use prithivMLmods/Muscae-Qwen3-UI-Code-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Muscae-Qwen3-UI-Code-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Muscae-Qwen3-UI-Code-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Muscae-Qwen3-UI-Code-4B
- SGLang
How to use prithivMLmods/Muscae-Qwen3-UI-Code-4B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "prithivMLmods/Muscae-Qwen3-UI-Code-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Muscae-Qwen3-UI-Code-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "prithivMLmods/Muscae-Qwen3-UI-Code-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Muscae-Qwen3-UI-Code-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/Muscae-Qwen3-UI-Code-4B with Docker Model Runner:
docker model run hf.co/prithivMLmods/Muscae-Qwen3-UI-Code-4B
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,35 +18,34 @@ pipeline_tag: text-generation
|
|
| 18 |
|
| 19 |

|
| 20 |
|
|
|
|
| 21 |
# **Muscae-Qwen3-UI-Code-4B**
|
| 22 |
|
| 23 |
-
> **Muscae-Qwen3-UI-Code-4B** is a
|
| 24 |
-
> It excels at
|
| 25 |
|
| 26 |
> \[!note]
|
| 27 |
> GGUF: [https://huggingface.co/prithivMLmods/Muscae-Qwen3-UI-Code-4B-GGUF](https://huggingface.co/prithivMLmods/Muscae-Qwen3-UI-Code-4B-GGUF)
|
| 28 |
|
| 29 |
-
|
| 30 |
## **Key Features**
|
| 31 |
|
| 32 |
-
1. **UI-
|
| 33 |
-
|
| 34 |
|
| 35 |
-
2. **Web
|
| 36 |
-
Excels
|
| 37 |
|
| 38 |
-
3. **
|
| 39 |
-
|
| 40 |
|
| 41 |
-
4. **Hybrid
|
| 42 |
-
Combines
|
| 43 |
|
| 44 |
-
5. **Structured Output
|
| 45 |
-
|
| 46 |
|
| 47 |
6. **Optimized Lightweight Footprint**
|
| 48 |
-
|
| 49 |
-
|
| 50 |
|
| 51 |
## **Quickstart with Transformers**
|
| 52 |
|
|
@@ -62,10 +61,10 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 62 |
)
|
| 63 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 64 |
|
| 65 |
-
prompt = "Generate a responsive
|
| 66 |
|
| 67 |
messages = [
|
| 68 |
-
{"role": "system", "content": "You are a frontend coding assistant skilled in
|
| 69 |
{"role": "user", "content": prompt}
|
| 70 |
]
|
| 71 |
|
|
@@ -91,15 +90,15 @@ print(response)
|
|
| 91 |
|
| 92 |
## **Intended Use**
|
| 93 |
|
| 94 |
-
* Web UI
|
| 95 |
-
* Responsive
|
| 96 |
-
*
|
| 97 |
-
*
|
| 98 |
-
*
|
| 99 |
|
| 100 |
## **Limitations**
|
| 101 |
|
| 102 |
-
*
|
| 103 |
-
*
|
| 104 |
-
*
|
| 105 |
-
*
|
|
|
|
| 18 |
|
| 19 |

|
| 20 |
|
| 21 |
+
|
| 22 |
# **Muscae-Qwen3-UI-Code-4B**
|
| 23 |
|
| 24 |
+
> **Muscae-Qwen3-UI-Code-4B** is a web-UI-focused model fine-tuned on UIGEN-T3-4B-Preview (built upon **Qwen3-4B**) for **controlled Abliterated Reasoning** and **polished token probabilities**, designed **exclusively for experimental use**.
|
| 25 |
+
> It excels at **modern web UI coding tasks**, **structured component generation**, and **layout-aware reasoning**, making it ideal for frontend developers, UI engineers, and research prototypes exploring structured code generation.
|
| 26 |
|
| 27 |
> \[!note]
|
| 28 |
> GGUF: [https://huggingface.co/prithivMLmods/Muscae-Qwen3-UI-Code-4B-GGUF](https://huggingface.co/prithivMLmods/Muscae-Qwen3-UI-Code-4B-GGUF)
|
| 29 |
|
|
|
|
| 30 |
## **Key Features**
|
| 31 |
|
| 32 |
+
1. **UI-Oriented Abliterated Reasoning**
|
| 33 |
+
Controlled reasoning precision tailored for frontend development and code generation, with polished token distributions ensuring structured, maintainable output.
|
| 34 |
|
| 35 |
+
2. **Web UI Component Generation**
|
| 36 |
+
Excels at generating **responsive components**, **semantic HTML**, and **Tailwind-based layouts** with reasoning-aware structure and minimal boilerplate.
|
| 37 |
|
| 38 |
+
3. **Layout-Aware Structured Logic**
|
| 39 |
+
Understands **UI state flows**, **component hierarchies**, and **responsive design patterns**, producing logically consistent, production-ready UI code.
|
| 40 |
|
| 41 |
+
4. **Hybrid Reasoning for Code**
|
| 42 |
+
Combines symbolic reasoning with probabilistic inference to deliver optimized component logic, conditional rendering, and event-driven UI behavior.
|
| 43 |
|
| 44 |
+
5. **Structured Output Mastery**
|
| 45 |
+
Natively outputs in **HTML**, **React**, **Markdown**, **JSON**, and **YAML**, making it ideal for UI prototyping, design systems, and documentation generation.
|
| 46 |
|
| 47 |
6. **Optimized Lightweight Footprint**
|
| 48 |
+
With a **4B parameter size**, it’s deployable on **mid-range GPUs**, **offline workstations**, or **edge devices** while retaining strong UI coding capabilities.
|
|
|
|
| 49 |
|
| 50 |
## **Quickstart with Transformers**
|
| 51 |
|
|
|
|
| 61 |
)
|
| 62 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 63 |
|
| 64 |
+
prompt = "Generate a responsive landing page hero section with Tailwind and semantic HTML."
|
| 65 |
|
| 66 |
messages = [
|
| 67 |
+
{"role": "system", "content": "You are a frontend coding assistant skilled in UI generation, semantic HTML, and component structuring."},
|
| 68 |
{"role": "user", "content": prompt}
|
| 69 |
]
|
| 70 |
|
|
|
|
| 90 |
|
| 91 |
## **Intended Use**
|
| 92 |
|
| 93 |
+
* Web UI coding and component generation
|
| 94 |
+
* Responsive layout and frontend architecture prototyping
|
| 95 |
+
* Semantic HTML, Tailwind, and React code generation
|
| 96 |
+
* Research and experimental projects on structured code synthesis
|
| 97 |
+
* Design-system-driven development workflows
|
| 98 |
|
| 99 |
## **Limitations**
|
| 100 |
|
| 101 |
+
* Experimental model – not optimized for production-critical deployments
|
| 102 |
+
* Focused on **UI coding** – not suitable for general reasoning or creative writing
|
| 103 |
+
* May produce inconsistent results with **very long prompts** or **cross-framework tasks**
|
| 104 |
+
* Prioritizes structure and correctness over stylistic creativity or verbosity
|