Text Generation
Transformers
Safetensors
GGUF
Portuguese
qwen3
mangaba-ai
portuguese
brazilian-portuguese
pretrained-from-scratch
muon
Eval Results (legacy)
text-generation-inference
Instructions to use mangaba-ai/Mangaba-Base-91M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mangaba-ai/Mangaba-Base-91M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mangaba-ai/Mangaba-Base-91M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mangaba-ai/Mangaba-Base-91M") model = AutoModelForCausalLM.from_pretrained("mangaba-ai/Mangaba-Base-91M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mangaba-ai/Mangaba-Base-91M with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf mangaba-ai/Mangaba-Base-91M:F16 # Run inference directly in the terminal: llama cli -hf mangaba-ai/Mangaba-Base-91M:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mangaba-ai/Mangaba-Base-91M:F16 # Run inference directly in the terminal: llama cli -hf mangaba-ai/Mangaba-Base-91M:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf mangaba-ai/Mangaba-Base-91M:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf mangaba-ai/Mangaba-Base-91M:F16
Use Docker
docker model run hf.co/mangaba-ai/Mangaba-Base-91M:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use mangaba-ai/Mangaba-Base-91M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mangaba-ai/Mangaba-Base-91M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mangaba-ai/Mangaba-Base-91M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mangaba-ai/Mangaba-Base-91M:F16
- SGLang
How to use mangaba-ai/Mangaba-Base-91M 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 "mangaba-ai/Mangaba-Base-91M" \ --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": "mangaba-ai/Mangaba-Base-91M", "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 "mangaba-ai/Mangaba-Base-91M" \ --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": "mangaba-ai/Mangaba-Base-91M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use mangaba-ai/Mangaba-Base-91M with Ollama:
ollama run hf.co/mangaba-ai/Mangaba-Base-91M:F16
- Unsloth Desktop
- Docker Model Runner
How to use mangaba-ai/Mangaba-Base-91M with Docker Model Runner:
docker model run hf.co/mangaba-ai/Mangaba-Base-91M:F16
- Lemonade
How to use mangaba-ai/Mangaba-Base-91M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mangaba-ai/Mangaba-Base-91M:F16
Run and chat with the model
lemonade run user.Mangaba-Base-91M-F16
List all available models
lemonade list
- Atomic Chat
Download train_args.json from mangaba-ai/Mangaba-Base-91M: direct link, hf CLI and curl.
- Browser
- Download file 708 Bytes
-
https://huggingface.co/mangaba-ai/Mangaba-Base-91M/resolve/main/train_args.json
- Command line
-
hf download hf://mangaba-ai/Mangaba-Base-91M/train_args.json
-
curl -L -o train_args.json https://huggingface.co/mangaba-ai/Mangaba-Base-91M/resolve/main/train_args.json
708 Bytes
| { | |
| "tok": "out/tokenizer", | |
| "val": "out/val.bin", | |
| "base_bin": "out/train.bin", | |
| "base_split": 1020000000, | |
| "glob": "out2/*.bin", | |
| "p_synth": -1, | |
| "save": "teacher100m", | |
| "hidden": 768, | |
| "layers": 14, | |
| "heads": 12, | |
| "kv": 4, | |
| "ffn": 2048, | |
| "seq": 512, | |
| "micro": 32, | |
| "accum": 16, | |
| "tokens": 20000000000.0, | |
| "minutes": 295.0, | |
| "lr_muon": 0.02, | |
| "lr_adam": 0.006, | |
| "wd": 0.0, | |
| "warmup": 0.02, | |
| "decay": 0.25, | |
| "eval_every": 500, | |
| "save_every_min": 30, | |
| "teacher": "", | |
| "kd_alpha": 0.2, | |
| "mem_frac": 0, | |
| "compile": 1, | |
| "seed": 1337, | |
| "params": 91250176, | |
| "final_val": 2.132023814320564, | |
| "steps": 9621, | |
| "tokens_seen": 2522087424, | |
| "seconds": 17544.111047267914, | |
| "synth_B": 5.306053065, | |
| "edu_B": 16.31685136 | |
| } |