CoolFace
Modelpublic

AxionLab-official/MiniBot-0.9M-Base

sourceHugging Facemitupdated 2d agoView on Hugging Face
0likes242downloads
Model Card

๐Ÿง  MiniBot-0.9M-Base

Ultra-lightweight GPT-2 style language model (~985K parameters) specialized in Portuguese conversational text.

![Model](https://huggingface.co/AxionLab-official/MiniBot-0.9M-Base) ![License](https://opensource.org/licenses/MIT) ![Language](https://huggingface.co/AxionLab-official/MiniBot-0.9M-Base) ![Parameters](https://huggingface.co/AxionLab-official/MiniBot-0.9M-Base)


๐Ÿ“Œ Overview

MiniBot-0.9M-Base is a tiny decoder-only Transformer (~985K parameters) based on the GPT-2 architecture, designed for efficient text generation in Portuguese.

This is a base (pretrained) model โ€” trained purely for next-token prediction, with no instruction tuning or alignment of any kind. It serves as the foundation for fine-tuned variants such as MiniBot-0.9M-Instruct.


๐ŸŽฏ Key Characteristics

AttributeDetail
๐Ÿ‡ง๐Ÿ‡ท LanguagePortuguese (primary)
๐Ÿง  ArchitectureGPT-2 style (Transformer decoder-only)
๐Ÿ”ค EmbeddingsGPT-2 compatible
๐Ÿ“‰ Parameters~985K (985,728)
โš™๏ธ ObjectiveCausal Language Modeling (next-token prediction)
๐Ÿšซ AlignmentNone (base model)

๐Ÿ—๏ธ Architecture

MiniBot-0.9M follows a scaled-down GPT-2 design:

  • โ€”Token embeddings + positional embeddings
  • โ€”Multi-head self-attention
  • โ€”Feed-forward (MLP) layers
  • โ€”Autoregressive decoding

Despite its small size, it preserves the core inductive biases of GPT-2, making it well-suited for experimentation and educational purposes.


๐Ÿ“š Training Dataset

The model was trained on a Portuguese conversational dataset focused on language pattern learning.

Training notes:

  • โ€”Pure next-token prediction objective
  • โ€”No instruction tuning (no SFT, no RLHF, no alignment)
  • โ€”Lightweight training pipeline
  • โ€”Optimized for small-scale experimentation

๐Ÿ’ก Capabilities

โœ… Strengths

  • โ€”Portuguese text generation
  • โ€”Basic dialogue structure
  • โ€”Simple prompt continuation
  • โ€”Linguistic pattern learning

โŒ Limitations

  • โ€”Very limited reasoning ability
  • โ€”Loses context in long conversations
  • โ€”Inconsistent outputs
  • โ€”Prone to repetition or incoherence
โš ๏ธ This model behaves as a statistical language generator, not a reasoning system.

๐Ÿš€ Getting Started

Installation

bash
pip install transformers torch

Usage with Hugging Face Transformers

python
from transformers import AutoTokenizer, AutoModelForCausalLM

model_name = "AxionLab-official/MiniBot-0.9M-Base"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)

prompt = "User: Me explique o que รฉ gravidade\nBot:"
inputs = tokenizer(prompt, return_tensors="pt")

outputs = model.generate(
    **inputs,
    max_new_tokens=50,
    temperature=0.8,
    top_p=0.95,
    do_sample=True,
)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))

โš™๏ธ Recommended Settings

ParameterRecommended ValueDescription
temperature0.7 โ€“ 1.0Controls randomness
top_p0.9 โ€“ 0.95Nucleus sampling
do_sampleTrueEnable sampling
max_new_tokens30 โ€“ 80Response length
๐Ÿ’ก Base models generally benefit from higher temperature values compared to instruct variants, since there is no fine-tuning to constrain the output distribution.

๐Ÿงช Intended Use Cases

Use CaseSuitability
๐Ÿง  Fine-tuning (chat, instruction, roleplay)โœ… Ideal
๐ŸŽฎ Prompt playground & experimentationโœ… Ideal
๐Ÿ”ฌ Research on tiny LLMsโœ… Ideal
๐Ÿ“‰ Benchmarking small architecturesโœ… Ideal
โšก Local / CPU-only applicationsโœ… Ideal
๐Ÿญ Critical production environmentsโŒ Not recommended

โš ๏ธ Disclaimer

  • โ€”Extremely small model (~985K parameters)
  • โ€”Limited world knowledge and weak generalization
  • โ€”No safety or alignment measures
  • โ€”Not suitable for production use

๐Ÿ”ฎ Future Work

  • โ€”[x] ๐ŸŽฏ Instruction-tuned version โ†’ `MiniBot-0.9M-Instruct`
  • โ€”[ ] ๐Ÿ“š Larger and more diverse dataset
  • โ€”[ ] ๐Ÿ”ค Tokenizer improvements
  • โ€”[ ] ๐Ÿ“ˆ Scaling to 1Mโ€“10M parameters
  • โ€”[ ] ๐Ÿง  Experimental reasoning fine-tuning

๐Ÿ“œ License

Distributed under the MIT License. See `LICENSE` for more details.


๐Ÿ‘ค Author

Developed by [AxionLab](https://huggingface.co/AxionLab-official) ๐Ÿ”ฌ


<div align="center"> <sub>MiniBot-0.9M-Base ยท AxionLab ยท MIT License</sub> </div>