Run this model with HF Jobs

Run HenrySentinel/tinyMind 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/HenrySentinel/tinyMind. 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/HenrySentinel/tinyMind 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/HenrySentinel/tinyMind. 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/HenrySentinel/tinyMind. 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.

tinyMind

This is a small transformer language model trained from scratch with approximately 17,731,328 parameters.

Model Details

  • Architecture: GPT-style transformer
  • Parameters: ~17M
  • Layers: 6
  • Attention Heads: 8
  • Embedding Dimension: 256
  • Max Sequence Length: 512
  • Vocabulary Size: 50257

Training Data

The model was trained on a diverse mixture of high-quality text data including:

  • OpenWebText
  • Wikipedia articles
  • BookCorpus
  • Other curated text sources

Usage

from transformers import GPT2TokenizerFast, AutoModelForCausalLM

tokenizer = GPT2TokenizerFast.from_pretrained("HenrySentinel/tinyMind")
model = AutoModelForCausalLM.from_pretrained("HenrySentinel/tinyMind")

# Generate text
input_text = "The key to artificial intelligence is"
input_ids = tokenizer.encode(input_text, return_tensors="pt")
output = model.generate(input_ids, max_length=100, temperature=0.8, do_sample=True)
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
print(generated_text)

Training Details

  • Optimizer: AdamW with cosine learning rate scheduling
  • Learning Rate: 0.001
  • Batch Size: 8
  • Sequence Length: 512
  • Epochs: 3
  • Gradient Clipping: 1.0

Limitations

This is a small model designed for experimentation and learning. It may:

  • Generate inconsistent or factually incorrect content
  • Have limited knowledge compared to larger models
  • Require careful prompt engineering for best results

License

Apache 2.0

Downloads last month
56
Safetensors
Model size
17.7M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support