Text Generation
Transformers
Safetensors
English
qwen3
trl
text-generation-inference
code
ui
conversational
Instructions to use prithivMLmods/Octans-Qwen3-UI-Code-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Octans-Qwen3-UI-Code-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Octans-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/Octans-Qwen3-UI-Code-4B") model = AutoModelForCausalLM.from_pretrained("prithivMLmods/Octans-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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use prithivMLmods/Octans-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/Octans-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/Octans-Qwen3-UI-Code-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Octans-Qwen3-UI-Code-4B
- SGLang
How to use prithivMLmods/Octans-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/Octans-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/Octans-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/Octans-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/Octans-Qwen3-UI-Code-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/Octans-Qwen3-UI-Code-4B with Docker Model Runner:
docker model run hf.co/prithivMLmods/Octans-Qwen3-UI-Code-4B
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,8 +2,19 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model:
|
| 4 |
- prithivMLmods/Muscae-Qwen3-UI-Code-4B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
|
|
|
|
|
|
|
| 7 |
# **Octans-Qwen3-UI-Code-4B**
|
| 8 |
|
| 9 |
> **Octans-Qwen3-UI-Code-4B** is an **optimized successor** of **Muscae-Qwen3-UI-Code-4B**, fine-tuned for enhanced **UI reasoning precision**, **layout structuring**, and **frontend code synthesis**.
|
|
@@ -87,4 +98,4 @@ print(response)
|
|
| 87 |
* Research-focused model – not fine-tuned for production-critical pipelines
|
| 88 |
* Specialized for **UI code** – not suitable for general text generation or long-form reasoning
|
| 89 |
* May exhibit variability with **cross-framework** or **overextended prompts**
|
| 90 |
-
* Prioritizes **code structure and logic clarity** over aesthetic or creative expression
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model:
|
| 4 |
- prithivMLmods/Muscae-Qwen3-UI-Code-4B
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
library_name: transformers
|
| 9 |
+
tags:
|
| 10 |
+
- trl
|
| 11 |
+
- text-generation-inference
|
| 12 |
+
- code
|
| 13 |
+
- ui
|
| 14 |
---
|
| 15 |
|
| 16 |
+

|
| 17 |
+
|
| 18 |
# **Octans-Qwen3-UI-Code-4B**
|
| 19 |
|
| 20 |
> **Octans-Qwen3-UI-Code-4B** is an **optimized successor** of **Muscae-Qwen3-UI-Code-4B**, fine-tuned for enhanced **UI reasoning precision**, **layout structuring**, and **frontend code synthesis**.
|
|
|
|
| 98 |
* Research-focused model – not fine-tuned for production-critical pipelines
|
| 99 |
* Specialized for **UI code** – not suitable for general text generation or long-form reasoning
|
| 100 |
* May exhibit variability with **cross-framework** or **overextended prompts**
|
| 101 |
+
* Prioritizes **code structure and logic clarity** over aesthetic or creative expression.
|