Locara

text-to-code

HF group: Multimodal (no dedicated HF tag; functionally a fine-tune of text-generation) ยท Status: ๐ŸŸก partial

What it is

LLM specialized on code โ€” completion, refactor, explain. Architecturally identical to text-to-text but with code-specific fine-tuning that meaningfully changes quality, particularly on multi-file edits and long contexts.

Open-weight models

ModelParamsReleasedLicenseQualityNotes
Qwen2.5-Coder-1.5B1.5 B2024-11Apache-2.0Best small coderSolid for autocomplete.
Qwen2.5-Coder-7B-Instruct7 B2024-11Apache-2.0Aider 50 %+Good chat-with-codebase pick.
Qwen2.5-Coder-32B-Instruct32 B2024-11Apache-2.0Aider 73.7Top open coder under 40 B.
Qwen3-Coder-Next80 B / 3 B active2026Apache-2.070.6 % SWE-bench VerifiedHybrid attention + MoE; agentic-tuned.
DeepSeek-Coder-V2-16B-A2.4B16 B / 2.4 B active2024DeepSeekStrongMoE; 300+ languages.
Yi-Coder-9B-Chat9 B2024Apache-2.085 % HumanEval128k context.
StarCoder2-3B3 B2024OpenRAIL-MLightweightGood for laptop autocomplete.
Devstral Small 224 B2026Mistral Research68 % SWE-benchBuilt for agentic coding, not chat.

Infrastructure required

Inference

  • โœ… Reuses locara-llama (text-to-text inference path).
  • โŒ Tree-sitter integration for code-aware sampling constraints (nice-to-have, not required).

Input

  • Plain text (same as text-to-text). Apps that want to feed a codebase do their own chunking.

Output

  • โœ… Same streaming token Channel as text-to-text.

Storage

  • โœ… Weights via locara-models::Cache.
  • App-side: code-edit history typically held in app SQLite; not framework-level.

Interaction (IPC + SDK)

  • โœ… Reuses llm.chat / llm.chat_stream. No code-specific IPC needed.

Capabilities (manifest)

  • โœ… capabilities.models[] lists a coder model.
  • โŒ No text-to-code modality entry yet in spec/04-modalities.md โ€” apps declare text-to-text and pick a coder model in the picker.

Gaps

  • Add text-to-code modality entry to the spec so the picker can route to coder models specifically.
  • Curated coder model list in the future models.json.
  • No reference app exists yet (existing reference apps are voice / transcribe / chat / docvault).

See also