Run this model with HF Jobs
Run LaferriereJC/minimind3-1m-v2 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/LaferriereJC/minimind3-1m-v2. 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/LaferriereJC/minimind3-1m-v2 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/LaferriereJC/minimind3-1m-v2. 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/LaferriereJC/minimind3-1m-v2. 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.
Instructions to use LaferriereJC/minimind3-1m-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LaferriereJC/minimind3-1m-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LaferriereJC/minimind3-1m-v2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("LaferriereJC/minimind3-1m-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LaferriereJC/minimind3-1m-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LaferriereJC/minimind3-1m-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LaferriereJC/minimind3-1m-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LaferriereJC/minimind3-1m-v2
- SGLang
How to use LaferriereJC/minimind3-1m-v2 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 "LaferriereJC/minimind3-1m-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LaferriereJC/minimind3-1m-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "LaferriereJC/minimind3-1m-v2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LaferriereJC/minimind3-1m-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use LaferriereJC/minimind3-1m-v2 with Docker Model Runner:
docker model run hf.co/LaferriereJC/minimind3-1m-v2
MiniMind-3 1M v2 (6 Trunk, d>=128 Net2Net Bootstrapped)
Compact 1.08M-parameter (d_model=152, _layers=3, _loops=2, 1,000-token vocab) causal language model trained with the validated MiniMind-3 v6 trunk (Pre-RMSNorm, GQA, Q/K RMSNorm, Sigmoid Attn Output Gate, 3:1 Local SWA w=128 + Global NoPE, 1.5x ReLU^2 FFN, loop_step_emb + Sigmoid loop_gate, MTP t+2 w=0.3).
Training & Results
- Bootstrapping (F-15): 512K (d=128, L=2, 50 TPP, PPMI-SVD) -> 1/k Net2Net -> 1M (d=152, L=3, 150 TPP WSD + Phase 1.5 annealing).
- Curriculum (REQ-254): 3-Class overlapping KDE with TinyStories + Cosmopedia-simple in early (mu=0.15), ivypanda-essays + wikitext + definitions + minipile in mid/late, and Natural-Unit <|im_end|>.
- Metrics (--stop-after sft):
- CPT al_ntp (100%): 2.2788 (51.5 min on RTX 5000)
- SFT (2,500 Low-effort rows, --boundary-weight 3.0): arget_nll=3.8501, top1=1.0, EOS top1=1.0, free-run strict_order=3/8 (37.5%), EOS=7/8 (87.5%).
Datasets Used
- Early CPT (mu=0.15): oneneldan/TinyStories (60K), HuggingFaceTB/cosmopedia (stories, 40K), Abirate/english_quotes (2.5K), NLTK rown (57.3K sentences)
- Mid / Late CPT (mu=0.50, mu=0.88): qwedsacf/ivypanda-essays (128.3K), Salesforce/wikitext (wikitext-103-raw-v1, 20K), marksverdhei/wordnet-definitions-en-2021 (25K), JeanKaddour/minipile (60K), HuggingFaceFW/fineweb-edu (sample-10BT, 80K)
- Phase 1.5 Annealing: HuggingFaceTB/cosmopedia-100k (25K), stanfordnlp/snli (30K), asksource/icl-symbol-tuning-instruct (20K), wordnet-definitions-en-2021 bidirectional (20K)
- SFT: 2,500 Low-effort rows across Math, Code, ReadingComp, and Instruction (--boundary-weight 3.0)
Sample Generations
CPT Mid-Sentence (cpt_hf, T=0.8, top_p=0.95)
- Prompt: 'Although the weather had turned cold, she'
- Output: ' was damaged to be armed with breaking her infrared problems. Although they were illustrated. She drew family to the law, she had to be armed with temperature and pay'
- Prompt: 'When the train arrived at the station,'
- Output: ' it had another arrival at the age of years.
The fourth guns were identified as the popularity of both their ceremonies and the location.
The state was us'
- Prompt: 'The scientist carefully examined the'
- Output: ' divided published vulnerable water, which was the human behavior of the body of the label of the air. Paul’s occurrence published and publ'
SFT Samples (sft, T=0.7, rep=1.15)
- Prompt: 'Simplify: $\sqrt{50} + \sqrt{18}$.'
- Output: 'To get total, and he need to need to use at the resting without all the case.<|im_end|>'
- Prompt: 'What is 15 * 12?'
- Output: 'Assessment: 3 3 3 3 3÷ 3 = 13.
Total: 2 2 + 13 = 5
\boxed{5}<|im_end|>'
- Downloads last month
- 47