Amoeba: A family of compact language models featuring dynamic activation and acceleration
2 min read
Amoeba is a series of four models ranging from 0.3B to 2B parameters built on MiniCPM5, Qwen3, and MNN-Pocket, created as an empirical study on efficient speculative decoding and tool usage. The Amoeba-DA versions use a verifier for parallel token suggestion, providing generation speedup while maintaining accuracy on key tasks. All four variants are also fine-tuned for tool calling with support for ReAct scenarios. The project targets developers who need fast and functional local mini-models.
Key features
- Amoeba-DA: Verifiable speculative decoding with up to 2.015x speedup for the 2B version.
- Tool calling: All four sizes are trained to generate tool calls with a ready-to-use ReAct script.
- Accuracy retention: The 2B model demonstrates gains on test tasks without quality regression.
- Open license: All weights and the repository are distributed under the Apache-2.0 license.
What you can do
- Deploy a local chatbot based on Amoeba-2B with support for fast responses and external function calls.
- Use the
amoeba_da_infer.pyscript to evaluate generation speedup via speculative decoding. - Review the research paper and reports on architectural limitations for integration into your pipelines.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
p = "Amoeba-2B/full_model"
tok = AutoTokenizer.from_pretrained(p)
model = AutoModelForCausalLM.from_pretrained(p, dtype="auto", device_map="auto")
out = model.generate(**tok("你好", return_tensors="pt").to(model.device),
max_new_tokens=128, do_sample=True,
temperature=0.8, top_p=0.95, repetition_penalty=1.05)
print(tok.decode(out[0], skip_special_tokens=True))Read more
Details• Architecture: Built on MiniCPM5, Qwen3, and MNN-Pocket in sizes of 0.3B, 0.6B, 1B, and 2B.
• Benchmarks: Amoeba-2B shows a 2.015x speedup (from 26.6 to 53.6 tokens per second) on an RTX 4080S.
• Limitations: Amoeba-DA speedup depends on the architecture; it does not work on models with a sliding window.
• License: Apache-2.0 for all weights and the repository.










Comments