ORCH

ORCH-7B

Orchestrated Recursive Code Hierarchy

QLoRA fine-tune of DeepSeek Coder 6.7B Instruct for autonomous Next.js code generation

Space License Base


TL;DR

Base model deepseek-ai/deepseek-coder-6.7b-instruct
Fine-tuning method QLoRA (4-bit NF4 quantization + double quant + LoRA adapters)
Hardware Single NVIDIA A100
Training duration 43 hours
Training steps 5,238
Context length 16,384 tokens (linear RoPE scaling, 4×)
Parameter count (base) 6.7B
Format Hugging Face Transformers (safetensors)

What this is

A QLoRA fine-tune of DeepSeek Coder 6.7B Instruct specialized for generating complete Next.js applications from natural language prompts. Where the from-scratch ORCH siblings explore the limits of pretraining small custom architectures, ORCH-7B takes the other approach: start from a strong code base model and specialize it cheaply via parameter-efficient fine-tuning.

ORCH-7B is the model powering the ORCH Studio Gradio Space — describe an application, get a downloadable Next.js 14 project ZIP.

Specialization

  • Framework: Next.js 14+ (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS
  • Database: Prisma ORM patterns
  • Auth: NextAuth.js patterns
  • Components: shadcn/ui compatible structure

Fine-tuning details

Quantization 4-bit NF4 (bitsandbytes)
Double quantization yes
Compute dtype bfloat16
Adapter LoRA
RoPE scaling linear, factor 4.0
RoPE theta 100,000
Hardware NVIDIA A100
Duration 43 hours
Steps 5,238

The base config is preserved (LLaMA architecture, 32 layers, 4096 hidden, 32 heads, 32 KV); the fine-tune layers on top via LoRA adapters with 4-bit quantization to keep memory in check.

Usage

With Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "raihan-js/orch-7b"   # or use orch-ai/ORCH-7B mirror

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float16,
    device_map="auto",
)

prompt = """### Instruction:
Create a Next.js login page with email and password fields, validation, and error handling.

### Response:
"""

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=1024, temperature=0.7, do_sample=True)
print(tokenizer.decode(output[0], skip_special_tokens=True))

Easiest path: ORCH Studio

For non-developers, the ORCH Studio Gradio Space wraps this model with project templates and a ZIP-download workflow.

Intended use

  • Generating Next.js 14 application skeletons from natural language
  • Specialized completion for App Router + TypeScript + Tailwind code
  • A fine-tuned counterpart to the from-scratch ORCH series

Limitations

  • Domain-specialized: fine-tuned for Next.js. General-purpose code generation outside this domain will be weaker than the base DeepSeek model.
  • Training scope: 5,238 steps on a curated dataset — not a frontier-scale fine-tune.
  • No safety alignment beyond the base model. Treat outputs as untrusted code; review before deploying.
  • Linear RoPE 4× scaling extends usable context but is not a perfect substitute for native long-context training.

License

Released under the ORCH License v1.0 — see LICENSE in this repo. (DeepSeek Coder's base model license also applies.)

Related models

The from-scratch ORCH siblings (no base model, custom LLaMA architectures):

Plus the medical sibling:

And the Space that uses this model:

Author

Akteruzzaman Raihan Sikder — AI/ML engineer. Founding engineer and AI/ML lead at VETR Proposal; previously CTO of ClarioScope AI (2024–2026, sunset). Portfolio · GitHub.

Citation

@misc{sikder2026orch7b,
  title  = {ORCH-7B: A QLoRA Fine-Tune of DeepSeek Coder 6.7B for Autonomous Next.js Code Generation},
  author = {Sikder, Akteruzzaman Raihan},
  year   = {2026},
  url    = {https://huggingface.co/raihan-js/orch-7b}
}
Downloads last month
3
Safetensors
Model size
7B params
Tensor type
F32
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for raihan-js/orch-7b

Adapter
(390)
this model