Instructions to use Rizor1x/Meron-1.2-Nano-9.93M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rizor1x/Meron-1.2-Nano-9.93M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Rizor1x/Meron-1.2-Nano-9.93M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Rizor1x/Meron-1.2-Nano-9.93M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Rizor1x/Meron-1.2-Nano-9.93M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Rizor1x/Meron-1.2-Nano-9.93M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rizor1x/Meron-1.2-Nano-9.93M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Rizor1x/Meron-1.2-Nano-9.93M
- SGLang
How to use Rizor1x/Meron-1.2-Nano-9.93M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Rizor1x/Meron-1.2-Nano-9.93M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rizor1x/Meron-1.2-Nano-9.93M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Rizor1x/Meron-1.2-Nano-9.93M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rizor1x/Meron-1.2-Nano-9.93M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Rizor1x/Meron-1.2-Nano-9.93M with Docker Model Runner:
docker model run hf.co/Rizor1x/Meron-1.2-Nano-9.93M
Meron 1.2 Nano 9.93M
Meron 1.2 Nano 9.93M is an English base model for text completion and symbolic reasoning. Built as a monolithic dense LLaMA architecture with 11 physical layers and a 2-pass recurrent loop (22 effective reasoning layers), all 9.93M parameters are active for every token. This release includes BF16 Safetensors weights, the tokenizer, and a native Transformers implementation.
Model overview
| Specification | |
|---|---|
| Model type | Autoregressive base language model |
| Total parameters | 9,932,544 |
| Context length | 1,024 tokens |
| Vocabulary | 4,096 tokens |
| Transformer blocks | 11 layers (22 effective recurrent depth) |
| Hidden size / attention heads | 256 / 8 (GQA 8Q / 2KV) |
Meron 1.2 Nano 9.93M uses standard LLaMA attention blocks with SwiGLU feedforward layers, RMSNorm pre-normalization, and Rotary Position Embeddings (RoPE). All 9.93M parameters are engaged for every token without router dispatch or expert switching.
During decoding, all 9.93M parameters are active.
Evaluation
The released BF16 checkpoint was evaluated in Transformers. Zero-shot evaluation results across the sub-10M parameter division:
Evaluation sets can differ by model. Meron 1.1 Nano 7.87M, Meron Nano 5.41M, Ethoric 10M.
Training and limitations
The training recipe targets roughly 3.73 billion processed tokens across general text, science, arithmetic, and educational data streams.
Meron is intended for short English completions and experiments with compact language models. Free-form generation can repeat phrases and produce incorrect answers, including on complex reasoning. Overlap between training and evaluation data has been comprehensively decontaminated with strict 13-gram filtering.
Inference
The example uses Transformers. It loads the model natively without requiring custom code.
pip install torch transformers safetensors
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Rizor1x/Meron-1.2-Nano-9.93M" # A path to the release folder also works.
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
trust_remote_code=True,
).eval()
inputs = tokenizer("The lamp on the desk", return_tensors="pt").to(model.device)
with torch.inference_mode():
output = model.generate(**inputs, max_new_tokens=16, do_sample=False)
continuation = output[0, inputs.input_ids.shape[1]:]
print(tokenizer.decode(continuation, skip_special_tokens=True))
Keep the prompt and continuation within 1,024 tokens combined. For batches, use left padding and pass the tokenizer's attention mask.
License
The release uses the Apache 2.0 license.
- Downloads last month
- 32