Run this model with HF Jobs

Run Pavloria/mini-language-model on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Pavloria/mini-language-model. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Pavloria/mini-language-model on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Pavloria/mini-language-model. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Pavloria/mini-language-model. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from
Docker Model Runner
docker model run hf.co/Pavloria/mini-language-model
Quick Links

Mini Language Model

🧠 Model Description

This is a toy decoder-only language model based on a TransformerDecoder architecture. It was trained from scratch on the Tiny Shakespeare dataset using PyTorch.

The goal was to explore autoregressive language modeling using minimal resources and libraries like torch.nn and transformers.

πŸ‹οΈ Training Details

  • Architecture: TransformerDecoder
  • Tokenizer: GPT2Tokenizer from Hugging Face
  • Vocabulary Size: 50257 (from GPT-2)
  • Sequence Length: 64 tokens
  • Batch Size: 8
  • Epochs: 5
  • Learning Rate: 1e-3
  • Number of Parameters: ~900k
  • Hardware: Trained on CPU (Google Colab)

πŸ“Š Evaluation

The model was evaluated on a 10% validation split. It shows consistent training and validation loss decrease, though it is not expected to produce coherent long text due to the small training size.

πŸ“‚ Intended Use

This model is intended for educational purposes only. It is not suitable for production use.

🚫 Limitations

  • Only trained on a tiny dataset
  • Small architecture, limited capacity
  • Limited ability to generalize or generate meaningful long text

πŸ’¬ Example Usage (Python)

python from transformers import GPT2Tokenizer from model import MiniDecoderModel # Assuming you restore the class

tokenizer = GPT2Tokenizer.from_pretrained("Pavloria/mini-language-model") model = MiniDecoderModel(...) # Load your config model.load_state_dict(torch.load("pytorch_model.bin"))

Downloads last month
26
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support