Run this model with HF Jobs
Run M26-AI/ThatAI-1-Mini-Lite 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 to fine-tune https://huggingface.co/M26-AI/ThatAI-1-Mini-Lite. 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/M26-AI/ThatAI-1-Mini-Lite 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/M26-AI/ThatAI-1-Mini-Lite. 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/M26-AI/ThatAI-1-Mini-Lite. 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 M26-AI/ThatAI-1-Mini-Lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use M26-AI/ThatAI-1-Mini-Lite with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "M26-AI/ThatAI-1-Mini-Lite") - Transformers
How to use M26-AI/ThatAI-1-Mini-Lite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="M26-AI/ThatAI-1-Mini-Lite") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("M26-AI/ThatAI-1-Mini-Lite", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use M26-AI/ThatAI-1-Mini-Lite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "M26-AI/ThatAI-1-Mini-Lite" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "M26-AI/ThatAI-1-Mini-Lite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/M26-AI/ThatAI-1-Mini-Lite
- SGLang
How to use M26-AI/ThatAI-1-Mini-Lite 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 "M26-AI/ThatAI-1-Mini-Lite" \ --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": "M26-AI/ThatAI-1-Mini-Lite", "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 "M26-AI/ThatAI-1-Mini-Lite" \ --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": "M26-AI/ThatAI-1-Mini-Lite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use M26-AI/ThatAI-1-Mini-Lite with Docker Model Runner:
docker model run hf.co/M26-AI/ThatAI-1-Mini-Lite
Download checkpoint-30/trainer_state.json from M26-AI/ThatAI-1-Mini-Lite: direct link, hf CLI and curl.
- Browser
- Download file 10 kB
-
https://huggingface.co/M26-AI/ThatAI-1-Mini-Lite/resolve/main/checkpoint-30/trainer_state.json
- Command line
-
hf download hf://M26-AI/ThatAI-1-Mini-Lite/checkpoint-30/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/M26-AI/ThatAI-1-Mini-Lite/resolve/main/checkpoint-30/trainer_state.json
10 kB
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 15.0, | |
| "eval_steps": 500, | |
| "global_step": 30, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.8, | |
| "grad_norm": 0.9485519528388977, | |
| "learning_rate": 0.0, | |
| "loss": 2.3796184062957764, | |
| "num_input_tokens_seen": 776, | |
| "num_tokens": 641.0, | |
| "step": 1, | |
| "train_runtime": 20.9241, | |
| "train_tokens_per_second": 37.086 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "grad_norm": 1.1163355112075806, | |
| "learning_rate": 6.666666666666667e-05, | |
| "loss": 2.507284641265869, | |
| "num_input_tokens_seen": 1026, | |
| "num_tokens": 825.0, | |
| "step": 2, | |
| "train_runtime": 25.8232, | |
| "train_tokens_per_second": 39.732 | |
| }, | |
| { | |
| "epoch": 1.8, | |
| "grad_norm": 0.93543940782547, | |
| "learning_rate": 0.00013333333333333334, | |
| "loss": 1.753351092338562, | |
| "num_input_tokens_seen": 1796, | |
| "num_tokens": 1446.0, | |
| "step": 3, | |
| "train_runtime": 45.4699, | |
| "train_tokens_per_second": 39.499 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "grad_norm": 0.8262258172035217, | |
| "learning_rate": 0.0002, | |
| "loss": 2.833249807357788, | |
| "num_input_tokens_seen": 2042, | |
| "num_tokens": 1650.0, | |
| "step": 4, | |
| "train_runtime": 53.9221, | |
| "train_tokens_per_second": 37.869 | |
| }, | |
| { | |
| "epoch": 2.8, | |
| "grad_norm": 0.5146732926368713, | |
| "learning_rate": 0.0001925925925925926, | |
| "loss": 1.3393938541412354, | |
| "num_input_tokens_seen": 2786, | |
| "num_tokens": 2288.0, | |
| "step": 5, | |
| "train_runtime": 86.2775, | |
| "train_tokens_per_second": 32.291 | |
| }, | |
| { | |
| "epoch": 3.0, | |
| "grad_norm": 0.7665570974349976, | |
| "learning_rate": 0.0001851851851851852, | |
| "loss": 2.409029722213745, | |
| "num_input_tokens_seen": 3032, | |
| "num_tokens": 2475.0, | |
| "step": 6, | |
| "train_runtime": 95.8935, | |
| "train_tokens_per_second": 31.618 | |
| }, | |
| { | |
| "epoch": 3.8, | |
| "grad_norm": 0.3991430103778839, | |
| "learning_rate": 0.00017777777777777779, | |
| "loss": 1.386528730392456, | |
| "num_input_tokens_seen": 3930, | |
| "num_tokens": 3171.0, | |
| "step": 7, | |
| "train_runtime": 131.6193, | |
| "train_tokens_per_second": 29.859 | |
| }, | |
| { | |
| "epoch": 4.0, | |
| "grad_norm": 1.2447540760040283, | |
| "learning_rate": 0.00017037037037037037, | |
| "loss": 1.0363820791244507, | |
| "num_input_tokens_seen": 4070, | |
| "num_tokens": 3300.0, | |
| "step": 8, | |
| "train_runtime": 136.8491, | |
| "train_tokens_per_second": 29.741 | |
| }, | |
| { | |
| "epoch": 4.8, | |
| "grad_norm": 0.5065094232559204, | |
| "learning_rate": 0.00016296296296296295, | |
| "loss": 1.3138647079467773, | |
| "num_input_tokens_seen": 4762, | |
| "num_tokens": 3893.0, | |
| "step": 9, | |
| "train_runtime": 162.267, | |
| "train_tokens_per_second": 29.347 | |
| }, | |
| { | |
| "epoch": 5.0, | |
| "grad_norm": 0.4217928647994995, | |
| "learning_rate": 0.00015555555555555556, | |
| "loss": 0.7329974174499512, | |
| "num_input_tokens_seen": 5012, | |
| "num_tokens": 4125.0, | |
| "step": 10, | |
| "train_runtime": 169.6148, | |
| "train_tokens_per_second": 29.549 | |
| }, | |
| { | |
| "epoch": 5.8, | |
| "grad_norm": 0.33604323863983154, | |
| "learning_rate": 0.00014814814814814815, | |
| "loss": 0.9436343908309937, | |
| "num_input_tokens_seen": 5824, | |
| "num_tokens": 4853.0, | |
| "step": 11, | |
| "train_runtime": 194.5754, | |
| "train_tokens_per_second": 29.932 | |
| }, | |
| { | |
| "epoch": 6.0, | |
| "grad_norm": 0.8833863139152527, | |
| "learning_rate": 0.00014074074074074076, | |
| "loss": 0.16804303228855133, | |
| "num_input_tokens_seen": 5942, | |
| "num_tokens": 4950.0, | |
| "step": 12, | |
| "train_runtime": 198.9687, | |
| "train_tokens_per_second": 29.864 | |
| }, | |
| { | |
| "epoch": 6.8, | |
| "grad_norm": 0.31941765546798706, | |
| "learning_rate": 0.00013333333333333334, | |
| "loss": 0.7647683620452881, | |
| "num_input_tokens_seen": 6686, | |
| "num_tokens": 5641.0, | |
| "step": 13, | |
| "train_runtime": 216.9233, | |
| "train_tokens_per_second": 30.822 | |
| }, | |
| { | |
| "epoch": 7.0, | |
| "grad_norm": 1.0824106931686401, | |
| "learning_rate": 0.00012592592592592592, | |
| "loss": 0.5647375583648682, | |
| "num_input_tokens_seen": 6826, | |
| "num_tokens": 5775.0, | |
| "step": 14, | |
| "train_runtime": 219.7702, | |
| "train_tokens_per_second": 31.06 | |
| }, | |
| { | |
| "epoch": 7.8, | |
| "grad_norm": 0.3211434781551361, | |
| "learning_rate": 0.00011851851851851852, | |
| "loss": 0.6273559331893921, | |
| "num_input_tokens_seen": 7664, | |
| "num_tokens": 6425.0, | |
| "step": 15, | |
| "train_runtime": 244.9438, | |
| "train_tokens_per_second": 31.289 | |
| }, | |
| { | |
| "epoch": 8.0, | |
| "grad_norm": 0.6933899521827698, | |
| "learning_rate": 0.00011111111111111112, | |
| "loss": 0.5335713624954224, | |
| "num_input_tokens_seen": 7852, | |
| "num_tokens": 6600.0, | |
| "step": 16, | |
| "train_runtime": 249.5212, | |
| "train_tokens_per_second": 31.468 | |
| }, | |
| { | |
| "epoch": 8.8, | |
| "grad_norm": 0.26282116770744324, | |
| "learning_rate": 0.0001037037037037037, | |
| "loss": 0.35793164372444153, | |
| "num_input_tokens_seen": 8584, | |
| "num_tokens": 7238.0, | |
| "step": 17, | |
| "train_runtime": 269.3192, | |
| "train_tokens_per_second": 31.873 | |
| }, | |
| { | |
| "epoch": 9.0, | |
| "grad_norm": 0.6661890745162964, | |
| "learning_rate": 9.62962962962963e-05, | |
| "loss": 0.7900345325469971, | |
| "num_input_tokens_seen": 8830, | |
| "num_tokens": 7425.0, | |
| "step": 18, | |
| "train_runtime": 274.8665, | |
| "train_tokens_per_second": 32.125 | |
| }, | |
| { | |
| "epoch": 9.8, | |
| "grad_norm": 0.30578505992889404, | |
| "learning_rate": 8.888888888888889e-05, | |
| "loss": 0.43732571601867676, | |
| "num_input_tokens_seen": 9728, | |
| "num_tokens": 8131.0, | |
| "step": 19, | |
| "train_runtime": 294.4577, | |
| "train_tokens_per_second": 33.037 | |
| }, | |
| { | |
| "epoch": 10.0, | |
| "grad_norm": 0.5570516586303711, | |
| "learning_rate": 8.148148148148148e-05, | |
| "loss": 0.24294424057006836, | |
| "num_input_tokens_seen": 9890, | |
| "num_tokens": 8250.0, | |
| "step": 20, | |
| "train_runtime": 298.2982, | |
| "train_tokens_per_second": 33.155 | |
| }, | |
| { | |
| "epoch": 10.8, | |
| "grad_norm": 0.33500543236732483, | |
| "learning_rate": 7.407407407407407e-05, | |
| "loss": 0.4055212438106537, | |
| "num_input_tokens_seen": 10736, | |
| "num_tokens": 8898.0, | |
| "step": 21, | |
| "train_runtime": 319.675, | |
| "train_tokens_per_second": 33.584 | |
| }, | |
| { | |
| "epoch": 11.0, | |
| "grad_norm": 0.2124997079372406, | |
| "learning_rate": 6.666666666666667e-05, | |
| "loss": 0.09030428528785706, | |
| "num_input_tokens_seen": 10950, | |
| "num_tokens": 9075.0, | |
| "step": 22, | |
| "train_runtime": 327.318, | |
| "train_tokens_per_second": 33.454 | |
| }, | |
| { | |
| "epoch": 11.8, | |
| "grad_norm": 0.3151850402355194, | |
| "learning_rate": 5.925925925925926e-05, | |
| "loss": 0.18597549200057983, | |
| "num_input_tokens_seen": 11742, | |
| "num_tokens": 9696.0, | |
| "step": 23, | |
| "train_runtime": 351.4803, | |
| "train_tokens_per_second": 33.407 | |
| }, | |
| { | |
| "epoch": 12.0, | |
| "grad_norm": 0.4107218086719513, | |
| "learning_rate": 5.185185185185185e-05, | |
| "loss": 0.35141122341156006, | |
| "num_input_tokens_seen": 11988, | |
| "num_tokens": 9900.0, | |
| "step": 24, | |
| "train_runtime": 359.6413, | |
| "train_tokens_per_second": 33.333 | |
| }, | |
| { | |
| "epoch": 12.8, | |
| "grad_norm": 0.2672235071659088, | |
| "learning_rate": 4.4444444444444447e-05, | |
| "loss": 0.23101909458637238, | |
| "num_input_tokens_seen": 12732, | |
| "num_tokens": 10591.0, | |
| "step": 25, | |
| "train_runtime": 382.8506, | |
| "train_tokens_per_second": 33.256 | |
| }, | |
| { | |
| "epoch": 13.0, | |
| "grad_norm": 0.4993874728679657, | |
| "learning_rate": 3.7037037037037037e-05, | |
| "loss": 0.09843476116657257, | |
| "num_input_tokens_seen": 12872, | |
| "num_tokens": 10725.0, | |
| "step": 26, | |
| "train_runtime": 387.2357, | |
| "train_tokens_per_second": 33.241 | |
| }, | |
| { | |
| "epoch": 13.8, | |
| "grad_norm": 0.24643537402153015, | |
| "learning_rate": 2.962962962962963e-05, | |
| "loss": 0.191230908036232, | |
| "num_input_tokens_seen": 13722, | |
| "num_tokens": 11392.0, | |
| "step": 27, | |
| "train_runtime": 413.4867, | |
| "train_tokens_per_second": 33.186 | |
| }, | |
| { | |
| "epoch": 14.0, | |
| "grad_norm": 0.27920839190483093, | |
| "learning_rate": 2.2222222222222223e-05, | |
| "loss": 0.032702647149562836, | |
| "num_input_tokens_seen": 13910, | |
| "num_tokens": 11550.0, | |
| "step": 28, | |
| "train_runtime": 419.6494, | |
| "train_tokens_per_second": 33.147 | |
| }, | |
| { | |
| "epoch": 14.8, | |
| "grad_norm": 0.2750123143196106, | |
| "learning_rate": 1.4814814814814815e-05, | |
| "loss": 0.19381193816661835, | |
| "num_input_tokens_seen": 14650, | |
| "num_tokens": 12204.0, | |
| "step": 29, | |
| "train_runtime": 444.6033, | |
| "train_tokens_per_second": 32.951 | |
| }, | |
| { | |
| "epoch": 15.0, | |
| "grad_norm": 0.09558026492595673, | |
| "learning_rate": 7.4074074074074075e-06, | |
| "loss": 0.02488352358341217, | |
| "num_input_tokens_seen": 14864, | |
| "num_tokens": 12375.0, | |
| "step": 30, | |
| "train_runtime": 451.1095, | |
| "train_tokens_per_second": 32.95 | |
| } | |
| ], | |
| "logging_steps": 1, | |
| "max_steps": 30, | |
| "num_input_tokens_seen": 14864, | |
| "num_train_epochs": 15, | |
| "save_steps": 30, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 32703444602880.0, | |
| "train_batch_size": 2, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |