Downloads · 30 days
78
5% of all-time downloads
mii-llm/nesso-4B
nesso-4B is a text generation model from mii-llm. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
<div style="width: auto; margin-left: auto; margin-right: auto" <img src="https://i.imgur.com/431v9gq.jpeg" alt="Nesso - Your small on-device everyday assistant" style="width: 120%; min-width: 500px; display: block; m…
Downloads · 30 days
78
5% of all-time downloads
All-time downloads
1.5K
Public
Parameters
4B
32.2 GB on disk
Likes
10
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
Nesso-4B is your small on-device everyday assistant: a highly versatile 4B parameter language model designed for efficient deployment on consumer hardware while maintaining strong performance across diverse tasks.
Ensure you have the latest version of transformers:
pip install transformers>=4.51.0
from transformers import TextStreamer
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "mii-llm/nesso-4B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
streamer = TextStreamer(tokenizer, skip_prompt=True)
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Write a short story about AI."}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
_ = model.generate(
**inputs,
streamer=streamer,
max_new_tokens=1024,
do_sample=True,
temperature=0.7,
top_p=0.95,
top_k=50
)
pip install "vllm>=0.8.5"
vllm serve mii-llm/nesso-4B --enable-auto-tool-choice --tool-call-parser hermes
Both create OpenAI-compatible API endpoints that you can use with standard clients.
Note: If you encounter out-of-memory (OOM) issues, consider reducing the context length to a shorter value, such as 32,768 or 16,384.
Nesso is also supported by popular local inference applications:
For reduced memory usage:
# INT8
model = AutoModelForCausalLM.from_pretrained(
model_name,
load_in_8bit=True,
device_map="auto"
)
# INT4
model = AutoModelForCausalLM.from_pretrained(
model_name,
load_in_4bit=True,
device_map="auto"
)
This model is released under the mii 1.0 License.
If you use Nesso in your work, please cite:
@misc{nesso-4b,
author = {mii-llm},
title = {Nesso-4B: Your Small On-Device Everyday Assistant},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/mii-llm/nesso-4B}
}
Built with Axolotl
<a href="https://github.com/OpenAccess-AI-Collective/axolotl"> <img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/> </a>This model is licensed under the Mii Open License v1.0. Free for research and personal use. Production deployment requires prior written permission. Commercial use by entities requires a separate commercial license. Citation is required for all uses. Contact us for permissions.