Downloads · 30 days
207
70% of all-time downloads
raihan-js/orch-nextjs-3b
orch-nextjs-3b is a text generation model from raihan-js. Use it when you need the model to write or continue text. It is set up for pytorch. The card lists the license as apache-2.0.
A 3 billion parameter decoder-only transformer trained from scratch for generating complete Next.js applications — pages, API routes, Prisma schemas, Tailwind components, configs.
Downloads · 30 days
207
70% of all-time downloads
All-time downloads
295
Public
Repo size
6.4 GB
Likes
0
Public
Click a slice to open those files.
.pt6.4 GB · 100%
From the Hugging Face model README
A 3 billion parameter decoder-only transformer trained from scratch for generating complete Next.js applications — pages, API routes, Prisma schemas, Tailwind components, configs.
| Parameters | ~3.0 Billion |
| Architecture | Custom LLaMA-style decoder-only transformer |
| Training | From scratch — no base model |
| Vocabulary | 32,000 (custom) |
| Context length | 16,384 tokens |
| Hardware | NVIDIA A40 48GB (RunPod) |
| Training duration | ~2 hours (3 epochs, ~29,000 steps) |
| License | Apache 2.0 |
The largest model in the from-scratch ORCH lineup. Designed for full-stack Next.js generation: not just snippets, but complete project structures — TypeScript components, App Router pages, server actions, Prisma schemas, Tailwind utilities, and configuration files.
This is not a fine-tune of any pretrained model. Architecture and weights are trained end-to-end on curated Next.js repositories.
Layers: 32
Hidden size: 2,560
Intermediate size: 10,240
Attention heads: 32
KV heads (GQA): 8
Max position: 16,384
RoPE theta: 10,000
Activation: SwiGLU
Normalization: RMSNorm
Tied embeddings: no
Vocab size: 32,000 (custom)
Standard LLaMA-style ingredients (RoPE, GQA, SwiGLU, RMSNorm) at scale. The 16,384-token context length allows the model to keep a meaningful portion of a project in context during generation.
The model is trained to produce complete project structures:
package.json, tsconfig.json, next.config.jsCustom PyTorch format — use the ORCH inference code (not yet published):
import torch
from orch.model.config import OrchConfig
from orch.model.transformer import OrchForCausalLM
model = OrchForCausalLM.from_pretrained("raihan-js/orch-nextjs-3b")
# ... use the same tokenizer.json from the repo
AutoModelForCausalLM.raihan-js/orch-fusion — 272M sibling, tiny 2,103 vocabraihan-js/orch-nextjs-350m-v2 — 287M sibling, 16k vocabraihan-js/orch-7b — alternate approach: QLoRA fine-tune of DeepSeek Coder 6.7BAkteruzzaman Raihan Sikder — AI/ML engineer. Founding engineer and AI/ML lead at VETR Proposal; previously CTO of ClarioScope AI (2024–2026, sunset). Portfolio · GitHub.
@misc{sikder2025orchnextjs3b,
title = {ORCH Next.js 3B: A 3-Billion-Parameter Decoder-Only Transformer Trained From Scratch for Full-Stack Next.js Code Generation},
author = {Sikder, Akteruzzaman Raihan},
year = {2025},
url = {https://huggingface.co/raihan-js/orch-nextjs-3b}
}