Text Generation
Transformers
Safetensors
French
English
qwen3_5_text
leon
parallactic-ai
code-generation
full-stack
landing-page
tailwind
shadcn
react
nextjs
app-generation
vllm
qwen3
conversational
Instructions to use Jesiel-AI/Leon-v2.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jesiel-AI/Leon-v2.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jesiel-AI/Leon-v2.1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Jesiel-AI/Leon-v2.1") model = AutoModelForCausalLM.from_pretrained("Jesiel-AI/Leon-v2.1") 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 Jesiel-AI/Leon-v2.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jesiel-AI/Leon-v2.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jesiel-AI/Leon-v2.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jesiel-AI/Leon-v2.1
- SGLang
How to use Jesiel-AI/Leon-v2.1 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 "Jesiel-AI/Leon-v2.1" \ --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": "Jesiel-AI/Leon-v2.1", "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 "Jesiel-AI/Leon-v2.1" \ --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": "Jesiel-AI/Leon-v2.1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Jesiel-AI/Leon-v2.1 with Docker Model Runner:
docker model run hf.co/Jesiel-AI/Leon-v2.1
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- fr
|
| 5 |
+
- en
|
| 6 |
+
base_model:
|
| 7 |
+
- Qwen/Qwen3.6-27B
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
tags:
|
| 10 |
+
- leon
|
| 11 |
+
- parallactic-ai
|
| 12 |
+
- code-generation
|
| 13 |
+
- full-stack
|
| 14 |
+
- landing-page
|
| 15 |
+
- tailwind
|
| 16 |
+
- shadcn
|
| 17 |
+
- react
|
| 18 |
+
- nextjs
|
| 19 |
+
- app-generation
|
| 20 |
+
- vllm
|
| 21 |
+
- qwen3
|
| 22 |
+
library_name: transformers
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
# Leon v2.1
|
| 26 |
+
|
| 27 |
+
**27B · Full-Stack App Generation · Open Beta · by Parallactic AI**
|
| 28 |
+
|
| 29 |
+
Leon is a specialized language model fine-tuned from Qwen3.6-27B for **full-stack application and landing page generation**. Leon generates beautiful, production-ready React/Next.js code using modern UI libraries — out of the box.
|
| 30 |
+
|
| 31 |
+
> ⚠️ **Open beta.** Leon v2.1 is in public beta. Your outputs help train future versions. Errors are possible — always review generated code.
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## What Leon Does
|
| 36 |
+
|
| 37 |
+
Leon specializes in generating **high-visual-fidelity, production-ready** frontend code:
|
| 38 |
+
|
| 39 |
+
- Multi-section landing pages
|
| 40 |
+
- Full-stack Next.js applications
|
| 41 |
+
- React components with animations
|
| 42 |
+
- Tailwind + shadcn/ui layouts
|
| 43 |
+
- Aceternity UI and Magic UI patterns
|
| 44 |
+
- Framer Motion animations
|
| 45 |
+
- Responsive, accessible code by default
|
| 46 |
+
|
| 47 |
+
Leon is **not a general assistant**. It is purpose-built for app generation.
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
## Component Stack Leon Knows
|
| 52 |
+
|
| 53 |
+
Leon is trained to use and combine these libraries intelligently:
|
| 54 |
+
|
| 55 |
+
| Library | Role | When Leon uses it |
|
| 56 |
+
|---------|------|-------------------|
|
| 57 |
+
| **Tailwind CSS** | Core styling | Always |
|
| 58 |
+
| **shadcn/ui** | Functional components | Buttons, forms, cards, dialogs |
|
| 59 |
+
| **Aceternity UI** | Bold visual sections | Heroes, backgrounds, 3D cards |
|
| 60 |
+
| **Magic UI** | Polished micro-interactions | Animated beams, text effects, borders |
|
| 61 |
+
| **Framer Motion** | Animations | Scroll reveals, hover effects, stagger |
|
| 62 |
+
| **Lucide React** | Icons | Throughout |
|
| 63 |
+
|
| 64 |
+
---
|
| 65 |
+
|
| 66 |
+
## Model Details
|
| 67 |
+
|
| 68 |
+
| Property | Value |
|
| 69 |
+
|----------|-------|
|
| 70 |
+
| Base model | Qwen/Qwen3.6-27B |
|
| 71 |
+
| Parameters | 27B |
|
| 72 |
+
| Format | SafeTensors |
|
| 73 |
+
| Specialization | Full-stack app & landing page generation |
|
| 74 |
+
| Primary output | React / Next.js / Tailwind code |
|
| 75 |
+
| Languages | French · English |
|
| 76 |
+
| License | Apache 2.0 |
|
| 77 |
+
| Context length | 8,192 tokens |
|
| 78 |
+
|
| 79 |
+
---
|
| 80 |
+
|
| 81 |
+
## Quick Start
|
| 82 |
+
|
| 83 |
+
### vLLM (recommended)
|
| 84 |
+
|
| 85 |
+
```bash
|
| 86 |
+
pip install vllm
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
```bash
|
| 90 |
+
python -m vllm.entrypoints.openai.api_server \
|
| 91 |
+
--model Jesiel-AI/Leon-v2.1 \
|
| 92 |
+
--host 0.0.0.0 \
|
| 93 |
+
--port 8000 \
|
| 94 |
+
--max-model-len 8192 \
|
| 95 |
+
--max-num-seqs 256 \
|
| 96 |
+
--gpu-memory-utilization 0.92 \
|
| 97 |
+
--enable-prefix-caching \
|
| 98 |
+
--disable-log-requests
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
```python
|
| 102 |
+
from openai import OpenAI
|
| 103 |
+
|
| 104 |
+
client = OpenAI(base_url="http://localhost:8000/v1", api_key="token")
|
| 105 |
+
|
| 106 |
+
response = client.chat.completions.create(
|
| 107 |
+
model="Jesiel-AI/Leon-v2.1",
|
| 108 |
+
messages=[
|
| 109 |
+
{
|
| 110 |
+
"role": "system",
|
| 111 |
+
"content": "You are Leon, a full-stack app generation model by Parallactic AI. Generate clean, production-ready React/Next.js code using Tailwind CSS, shadcn/ui, Aceternity UI, Magic UI, and Framer Motion."
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"role": "user",
|
| 115 |
+
"content": "Generate a hero section for a SaaS landing page with an animated background and a CTA button."
|
| 116 |
+
}
|
| 117 |
+
],
|
| 118 |
+
max_tokens=2048,
|
| 119 |
+
temperature=0.7,
|
| 120 |
+
stream=True,
|
| 121 |
+
)
|
| 122 |
+
|
| 123 |
+
for chunk in response:
|
| 124 |
+
print(chunk.choices[0].delta.content or "", end="", flush=True)
|
| 125 |
+
```
|
| 126 |
+
|
| 127 |
+
### Transformers
|
| 128 |
+
|
| 129 |
+
```python
|
| 130 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 131 |
+
import torch
|
| 132 |
+
|
| 133 |
+
model_id = "Jesiel-AI/Leon-v2.1"
|
| 134 |
+
|
| 135 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 136 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 137 |
+
model_id,
|
| 138 |
+
torch_dtype=torch.bfloat16,
|
| 139 |
+
device_map="auto",
|
| 140 |
+
)
|
| 141 |
+
|
| 142 |
+
messages = [
|
| 143 |
+
{
|
| 144 |
+
"role": "system",
|
| 145 |
+
"content": "You are Leon, a full-stack app generation model by Parallactic AI. Generate clean, production-ready React/Next.js code using Tailwind CSS, shadcn/ui, Aceternity UI, Magic UI, and Framer Motion."
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"role": "user",
|
| 149 |
+
"content": "Generate a pricing section with 3 tiers using shadcn/ui cards and Tailwind."
|
| 150 |
+
}
|
| 151 |
+
]
|
| 152 |
+
|
| 153 |
+
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 154 |
+
inputs = tokenizer([text], return_tensors="pt").to(model.device)
|
| 155 |
+
|
| 156 |
+
with torch.no_grad():
|
| 157 |
+
outputs = model.generate(**inputs, max_new_tokens=2048, temperature=0.7, do_sample=True)
|
| 158 |
+
|
| 159 |
+
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[-1]:], skip_special_tokens=True))
|
| 160 |
+
```
|
| 161 |
+
|
| 162 |
+
---
|
| 163 |
+
|
| 164 |
+
## Architecture
|
| 165 |
+
|
| 166 |
+
Leon is designed to work as part of the following stack:
|
| 167 |
+
|
| 168 |
+
```
|
| 169 |
+
User prompt
|
| 170 |
+
↓
|
| 171 |
+
Leon v2.1 (code generation)
|
| 172 |
+
↓
|
| 173 |
+
Generated React/Next.js code
|
| 174 |
+
↓
|
| 175 |
+
GROTTE sandbox (EU-sovereign execution + preview)
|
| 176 |
+
```
|
| 177 |
+
|
| 178 |
+
---
|
| 179 |
+
|
| 180 |
+
## v0.5 Scope
|
| 181 |
+
|
| 182 |
+
Leon v2.1 (open beta) is focused on:
|
| 183 |
+
|
| 184 |
+
- ✅ Multi-section landing pages
|
| 185 |
+
- ✅ High visual fidelity (Aceternity + Magic UI patterns)
|
| 186 |
+
- ✅ shadcn/ui component library
|
| 187 |
+
- ✅ Framer Motion animations
|
| 188 |
+
- ✅ Responsive by default
|
| 189 |
+
- ✅ Copy-paste ready output
|
| 190 |
+
|
| 191 |
+
Deferred to later versions:
|
| 192 |
+
- 3D elements (Three.js / Spline)
|
| 193 |
+
- Tool calling / MCP
|
| 194 |
+
- Design system ingestion
|
| 195 |
+
|
| 196 |
+
---
|
| 197 |
+
|
| 198 |
+
## Limitations
|
| 199 |
+
|
| 200 |
+
- Open beta — expect rough edges and hallucinations
|
| 201 |
+
- Always review generated code before deploying to production
|
| 202 |
+
- 3D and advanced tool-calling not yet supported
|
| 203 |
+
- Best results with clear, specific prompts describing sections and style
|
| 204 |
+
|
| 205 |
+
---
|
| 206 |
+
|
| 207 |
+
## Citation
|
| 208 |
+
|
| 209 |
+
```bibtex
|
| 210 |
+
@misc{leon2026,
|
| 211 |
+
author = {Rombley, Jesiel and Parallactic AI},
|
| 212 |
+
title = {Leon v2.1: A Specialized Full-Stack App Generation Model},
|
| 213 |
+
year = {2026},
|
| 214 |
+
publisher = {Hugging Face},
|
| 215 |
+
howpublished = {\url{https://huggingface.co/Jesiel-AI/Leon-v2.1}},
|
| 216 |
+
}
|
| 217 |
+
```
|