Instructions to use myjellylabs/Wren-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use myjellylabs/Wren-1.0 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("myjellylabs/Wren-1.0") model = AutoModelForMultimodalLM.from_pretrained("myjellylabs/Wren-1.0", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
Wren 1.0 โ 12B Open-Weight Multimodal AI Assistant by MyJellyLab
Wren 1.0 (myjellylabs/Wren-1.0) is a 12B-parameter dense multimodal (Text, Image, and Audio input; Text output) open-weight language model with a 256K token context window, developed by MyJellyLab and released under the Apache 2.0 license.
Designed for practical software engineering, analytical reasoning, and bilingual English + Hindi / Hinglish workflows, Wren 1.0 is distributed as standalone BF16 safetensors weights ready for direct inference with Hugging Face transformers, vLLM, and GGUF quantization pipelines.
Key Highlights
- Multimodal Understanding (Any-to-Any Input): Supports text, image, and audio inputs with text generation output, with vision and audio encoders preserved intact.
- 256K Context Window: Handles long codebases, multi-document analysis, and extended multi-turn conversations.
- Six Core Post-Training Domains: Software engineering & competitive coding, SQL & structured tool calling, multi-step math & STEM reasoning, finance & accounting, clean Devanagari Hindi & natural Hinglish, and concise anti-repetition instruction following.
- Standalone BF16 Weights: Full 12-shard BF16 safetensors release (
~23.9 GB, 0 NaN/Inf verified) requiring no external adapter loading at inference time. - Permissive Commercial License: Released under Apache 2.0 for both research and commercial deployment.
Model Specifications
| Specification | Details |
|---|---|
| Model Name | Wren 1.0 (myjellylabs/Wren-1.0) |
| Developer | MyJellyLab |
| Parameters | 12B dense |
| Precision | BF16 (safetensors, 12 shards) |
| Modalities | Text, Image, Audio input โ Text output |
| Context Length | 256K tokens |
| Languages | English (en), Hindi (hi), Hinglish |
| License | Apache 2.0 |
Post-Training Recipe
Wren 1.0 was post-trained using a two-stage parameter-efficient alignment pipeline followed by weight-space merging:
- Stage 1 โ Supervised Fine-Tuning (rsLoRA + CPU EMA): Rank-stabilized LoRA (
r=16,alpha=8,328language-model linear layers; vision and audio encoders frozen) with assistant-only loss masking and exponential moving average (EMA) weight smoothing (eval_loss=0.6614). - Stage 2 โ Preference Alignment (CPO-SimPO + CPU EMA): 800 curated preference pairs (
beta=2.0,gamma=0.5,cpo_alpha=0.20) optimizing response conciseness, reasoning stability, and anti-looping behavior. - Weight-Space Merge (WiSE-FT): Evaluated across merge scales (
0.75x,0.85x,1.00x) and merged at0.85xinto full BF16 weights to balance instruction-following gains with strong base-knowledge retention.
Sanity & Regression Evaluation (11-Probe Suite)
Before release, Wren 1.0 was evaluated greedily (do_sample=False) across an 11-probe regression suite covering identity consistency, factual recall, instruction following, SQL generation, finance calculations (EBITDA), multi-step reasoning, Devanagari Hindi, Hinglish, and strict concise JSON formatting:
| Check | Result |
|---|---|
| Identity Consistency (Direct, Override, Base64) | 3 / 3 passed (0 identity leaks) |
| Repetition / Degeneration Loops | 0 / 11 loops detected |
| Objective Capability Probes | 5 / 5 passed (Finance, Reasoning, Hindi, Instruction Following, Concise JSON) |
| Merged Tensor Integrity | 328 / 328 adapted layers merged, 0 NaN / Inf |
Quickstart
Hugging Face transformers (>= 5.10.2)
import torch
from transformers import AutoProcessor, AutoModelForMultimodalLM
model_id = "myjellylabs/Wren-1.0"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{"role": "user", "content": "Explain INNER JOIN vs LEFT JOIN in SQL with a short example."}
]
inputs = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
with torch.no_grad():
output_ids = model.generate(**inputs, max_new_tokens=512, temperature=0.7, top_p=0.9)
response = processor.decode(output_ids[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True)
print(response)
Serving with vLLM
Use a vLLM build with Gemma 4 Unified architecture support (vllm-project/vllm#44429):
vllm serve myjellylabs/Wren-1.0 \
--dtype bfloat16 \
--max-model-len 32768
Limitations & Responsible Use
- Wren 1.0 may still generate factual inaccuracies or hallucinations on niche or real-time topics; verify critical outputs in coding, financial, or legal workflows.
- No formal third-party benchmark leaderboard scores are claimed in this card beyond the verified internal regression suite above.
License & Attribution
Wren 1.0 is released by MyJellyLab under the Apache License 2.0 (see LICENSE). It is built upon the open-weight Gemma 4 12B architecture (google/gemma-4-12B-it), also licensed under Apache 2.0.
- Downloads last month
- 11