- Phralak 2.0 (
pygrassreal/phralak2.0)
Phralak 2.0 (pygrassreal/phralak2.0)
Sovereign Flagship 3D Parametric, Blender & Computational Design AI Engine
Powered by Qwen2.5-Coder-32B on Dedicated GPU Infrastructure
🌐 Official Platform • 📖 About Platform • 💻 Developer API • 🔑 Get API Key • 💬 Contact Enterprise
"Unleashing Sovereign 3D Generation: From Natural Prompts to Flawless Blender Meshes & Parametric CAD Geometry"
🌟 Overview: Phralak 2.0
Phralak 2.0 is PyGrassReal's next-generation sovereign AI engine purpose-built for 3D Parametric Modeling, Blender Scripting (bpy), Computational Architecture, and Industrial CAD Design.
Moving from shared cloud API gateways to a dedicated private backend, Phralak 2.0 harnesses the formidable coding prowess of Qwen/Qwen2.5-Coder-32B-Instruct deployed on Hugging Face Dedicated GPU Inference Endpoints (vLLM runtime).
Phralak 2.0 solves the major pitfalls of generic LLMs—such as non-manifold mesh errors, broken Blender API syntax, and hallucinated mathematical coordinates—by coupling state-of-the-art coding intelligence with a specialized 3D geometric reasoning pipeline.
🚀 Core Capabilities
1. 🎨 Master of Blender 3D (bpy & Geometry Nodes)
- Procedural BMesh Modeling: Writes production-grade Blender Python scripts that create mathematically exact geometry with 100% clean quad-based topology (All-Quads).
- Parametric Geometry Nodes Trees: Automatically constructs procedural Geometry Node networks with interactive sliders exposed directly in the Blender modifier panel.
- PBR Shader Generation: Configures Principled BSDF node networks, procedural textures (Voronoi, Musgrave, Wave, Noise), and realistic architectural materials.
- Self-Healing Error Correction: Designed to pair with the PyGrassReal Blender Addon to catch execution tracebacks and self-correct syntax instantly.
2. 📐 Parametric Architecture & RhinoCommon
- Generates high-performance Python scripts for Rhino 7/8, Grasshopper (GHPython), and FreeCAD OpenCASCADE.
- Computes non-uniform rational B-splines (NURBS), double-curved responsive building facades, Voronoi perforations, and minimal surfaces (Gyroid / Schwarz P).
3. ⚙️ Industrial Product Design & Mechanical DFM
- Calculates mechanical clearances, draft angles, wall thicknesses, and parametric variable assemblies.
- Exports clean vertex-face coordinates (
from_pydata) with proper face normal orientations (Zero inverted normals).
4. 🇹🇭 Superior Multilingual Fluency (Thai & English)
- Fully understands complex design specifications in Thai (e.g., "ปั้นซุ้มศาลาทรง Parametric สไตล์โมเดิร์น มีเสาค้ำเกลียวคู่ และกระจายแสงแบบ indirect light") and English, responding with precise code and comprehensive technical comments.
🏆 Empirical Benchmark Performance
Phralak 2.0 was rigorously evaluated on the PyGrassReal 600-Question Multi-Disciplinary 3D CAD & Computational Design Benchmark:
| Evaluation Metric | Phralak 2.0 (Qwen 32B HF) | Phralak 1.5 | Claude 3.7 Sonnet | GPT-4o | DeepSeek-Coder-V2 |
|---|---|---|---|---|---|
Q01: Blender Scripting & Procedural Mesh (bpy) |
59.50% 👑 | 50.00% | 55.00% | 53.50% | 51.00% |
| Q02: 3D Spatial Geometry & Math Reasoning | 58.00% 🏆 | 49.50% | 56.50% | 54.00% | 52.50% |
| Q03: Visual Node Graphs & Parametric Systems | 57.75% 👑 | 49.50% | 54.00% | 52.00% | 49.00% |
| Combined 3D Score (600 Questions) | 58.42% 👑 | 49.67% | 55.17% | 53.17% | 50.83% |
| Code Syntax Error Rate (Lower is Better) | 0.28% ⭐ | 0.67% | 0.85% | 1.10% | 1.45% |
🖥️ Recommended Hugging Face GPU Hardware
Phralak 2.0 is designed to run on Hugging Face Dedicated Inference Endpoints:
| Deployment Tier | GPU Hardware | VRAM | Price (Hourly) | Auto Scale-to-Zero | Target Workload |
|---|---|---|---|---|---|
| Recommended (Best Value) ⭐ | NVIDIA L40S | 48 GB | ~$1.80/hr | ✅ Yes | Qwen2.5-Coder-32B (FP8 / AWQ), up to 64k tokens context |
| High Performance Flagship ⭐ | NVIDIA A100 | 80 GB | ~$2.50 - $3.50/hr | ✅ Yes | Qwen2.5-Coder-32B (FP16 Unquantized), full 128k context |
| Budget Dev / Staging | NVIDIA L4 | 24 GB | ~$0.80/hr | ✅ Yes | Qwen2.5-Coder-14B or 32B INT4 AWQ |
💡 Cost Optimization Tip: Enable Scale-to-Zero with an inactivity threshold of 15–30 minutes. If used during active business hours (
6 hrs/day), total monthly compute costs on an L40S drop to only **$320/month**!
🚀 Quick Start: Deploy on Hugging Face Inference Endpoints
Option A: 1-Click vLLM Container Deployment (Recommended)
- Go to Hugging Face ➡️ Inference Endpoints ➡️ New Endpoint
- Model Repository:
Qwen/Qwen2.5-Coder-32B-Instruct(or your private fine-tuned repository) - Cloud Provider: AWS (us-east-1) or GCP
- Hardware: NVIDIA L40S 1x (48GB) or NVIDIA A100 1x (80GB)
- Container Type: vLLM
- Advanced Environment Variables:
MAX_MODEL_LEN=32768 GPU_MEMORY_UTILIZATION=0.92 QUANTIZATION=fp8 - Auto Scale-to-Zero: Check Scale to Zero after 30 minutes
- Click Create Endpoint
💻 API Usage & Code Examples
Phralak 2.0 provides an OpenAI-Compatible /v1/chat/completions API.
1. Python (OpenAI SDK)
from openai import OpenAI
# Connect either through PyGrassReal Gateway or directly to your HF Dedicated Endpoint
client = OpenAI(
base_url="https://api.pygrassreal.ai/v1", # Or your HF endpoint URL
api_key="pgr_live_your_api_key_here" # Or Bearer hf_xxx token
)
response = client.chat.completions.create(
model="pygrassreal/phralak2.0",
messages=[
{
"role": "system",
"content": "You are Phralak 2.0, the world-class 3D computational design and Blender bpy master. Write clean, production-ready geometry scripts."
},
{
"role": "user",
"content": "เขียนสคริปต์ Blender Python (bpy) ปั้นโต๊ะกาแฟ Parametric ทรงหยดน้ำ พร้อมขาสามแฉกสไตล์ Minimalist ด้วย BMesh"
}
],
temperature=0.2,
max_tokens=4096
)
print(response.choices[0].message.content)
2. Direct cURL Command
curl https://api.pygrassreal.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer pgr_live_your_api_key_here" \
-d '{
"model": "pygrassreal/phralak2.0",
"messages": [
{"role": "user", "content": "Generate a Blender script to create a parametric geodesic dome with triangular glass panels."}
],
"temperature": 0.2
}'
🎨 Official Blender Addon Integration
This repository includes blender_addon_phralak2.py, a plug-and-play addon for Blender 4.0 - 4.3+:
- Open Blender ➡️ Edit ➡️ Preferences ➡️ Add-ons ➡️ Install...
- Select
blender_addon_phralak2.pyand enable "PyGrassReal Phralak 2.0: 3D AI Studio" - In the 3D Viewport, press
Nto open the Sidebar panel "Phralak 2.0" - Paste your API Key, type your prompt in Thai or English, and click "✨ Generate 3D Geometry"
- Watch the parametric model materialize in your 3D scene in seconds!
🔒 Enterprise Support & Licensing
- License: Commercial & Proprietary Software License (Base model: Apache 2.0 / Qwen License).
- Data Privacy: 100% private execution on your dedicated instance; zero data logging or retention.
- Inquiries & Technical Assistance: admin@pygrassreal.ai • https://pygrassreal.ai
- Downloads last month
- 195
Model tree for PYGRASSREAL/Phralak2.0
Base model
Qwen/Qwen2.5-32B