Run this model with HF Jobs
Run aixk/fastplus-44m 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/aixk/fastplus-44m. 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/aixk/fastplus-44m 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/aixk/fastplus-44m. 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/aixk/fastplus-44m. 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 aixk/fastplus-44m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aixk/fastplus-44m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aixk/fastplus-44m")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("aixk/fastplus-44m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aixk/fastplus-44m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aixk/fastplus-44m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aixk/fastplus-44m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/aixk/fastplus-44m
- SGLang
How to use aixk/fastplus-44m 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 "aixk/fastplus-44m" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aixk/fastplus-44m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "aixk/fastplus-44m" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aixk/fastplus-44m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use aixk/fastplus-44m with Docker Model Runner:
docker model run hf.co/aixk/fastplus-44m
FastPlus40m Backup checkpoint-200 at global step 200
Browse filesFiles changed (5)
12345678910111213141516171819{ "architectures": [ "FastPlus40mForCausalLM" ], "dtype": "float32", "hidden_size": 512, "initializer_range": 0.02, "intermediate_size": 1536, "kd_alpha": 0.4, "kd_temperature": 2.5, "max_position_embeddings": 512, "model_type": "fastplus_40m", "num_attention_heads": 8, "num_hidden_layers": 11, "tie_word_embeddings": true, "transformers_version": "5.12.0", "use_cache": false, "vocab_size": 8160}123456{ "_from_model_config": true, "output_attentions": false, "output_hidden_states": false, "transformers_version": "5.12.0"}12345678910111213{ "backend": "tokenizers", "bos_token": "<s>", "eos_token": "</s>", "extra_special_tokens": [ "<|user|>", "<|assistant|>" ], "model_max_length": 1000000000000000019884624838656, "pad_token": "<pad>", "tokenizer_class": "TokenizersBackend", "unk_token": "<unk>"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194{ "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 0.8296603577910293, "eval_steps": 500, "global_step": 200, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.041483017889551464, "grad_norm": 203.76828002929688, "learning_rate": 1.4875e-05, "loss": 288.5525390625, "original_ce_loss": 9.0166, "step": 10 }, { "epoch": 0.08296603577910293, "grad_norm": 184.2494659423828, "learning_rate": 3.6125000000000004e-05, "loss": 287.5813232421875, "original_ce_loss": 8.9862, "step": 20 }, { "epoch": 0.1244490536686544, "grad_norm": 241.391845703125, "learning_rate": 5.7375e-05, "loss": 284.6296875, "original_ce_loss": 8.894, "step": 30 }, { "epoch": 0.16593207155820586, "grad_norm": 327.870361328125, "learning_rate": 7.8625e-05, "loss": 273.14404296875, "original_ce_loss": 8.5351, "step": 40 }, { "epoch": 0.20741508944775733, "grad_norm": 80.51351165771484, "learning_rate": 9.775e-05, "loss": 243.771630859375, "original_ce_loss": 7.6172, "step": 50 }, { "epoch": 0.2488981073373088, "grad_norm": 61.04130554199219, "learning_rate": 0.00011687500000000001, "loss": 229.8462646484375, "original_ce_loss": 7.182, "step": 60 }, { "epoch": 0.29038112522686027, "grad_norm": 60.73427200317383, "learning_rate": 0.000129625, "loss": 221.95341796875, "original_ce_loss": 6.9354, "step": 70 }, { "epoch": 0.3318641431164117, "grad_norm": 51.37192916870117, "learning_rate": 0.000150875, "loss": 214.37080078125, "original_ce_loss": 6.6984, "step": 80 }, { "epoch": 0.37334716100596316, "grad_norm": 22.531389236450195, "learning_rate": 0.000172125, "loss": 205.998388671875, "original_ce_loss": 6.4368, "step": 90 }, { "epoch": 0.41483017889551466, "grad_norm": 16.882768630981445, "learning_rate": 0.000193375, "loss": 201.5771484375, "original_ce_loss": 6.2986, "step": 100 }, { "epoch": 0.4563131967850661, "grad_norm": 32.13435363769531, "learning_rate": 0.000214625, "loss": 199.65380859375, "original_ce_loss": 6.2385, "step": 110 }, { "epoch": 0.4977962146746176, "grad_norm": 22.2371883392334, "learning_rate": 0.000235875, "loss": 198.15953369140624, "original_ce_loss": 6.1918, "step": 120 }, { "epoch": 0.5392792325641691, "grad_norm": 23.51988983154297, "learning_rate": 0.000257125, "loss": 195.21707763671876, "original_ce_loss": 6.0999, "step": 130 }, { "epoch": 0.5807622504537205, "grad_norm": 21.056625366210938, "learning_rate": 0.000278375, "loss": 192.00562744140626, "original_ce_loss": 5.9995, "step": 140 }, { "epoch": 0.622245268343272, "grad_norm": 27.031875610351562, "learning_rate": 0.000299625, "loss": 189.01895751953126, "original_ce_loss": 5.9062, "step": 150 }, { "epoch": 0.6637282862328234, "grad_norm": 18.687732696533203, "learning_rate": 0.000320875, "loss": 185.54974365234375, "original_ce_loss": 5.7978, "step": 160 }, { "epoch": 0.7052113041223749, "grad_norm": 34.62672805786133, "learning_rate": 0.000342125, "loss": 181.4411865234375, "original_ce_loss": 5.6694, "step": 170 }, { "epoch": 0.7466943220119263, "grad_norm": 22.933151245117188, "learning_rate": 0.000363375, "loss": 176.920361328125, "original_ce_loss": 5.5281, "step": 180 }, { "epoch": 0.7881773399014779, "grad_norm": 40.35688018798828, "learning_rate": 0.000384625, "loss": 171.9557861328125, "original_ce_loss": 5.373, "step": 190 }, { "epoch": 0.8296603577910293, "grad_norm": 36.39991760253906, "learning_rate": 0.000405875, "loss": 167.02354736328124, "original_ce_loss": 5.2188, "step": 200 } ], "logging_steps": 10, "max_steps": 242, "num_input_tokens_seen": 0, "num_train_epochs": 1, "save_steps": 200, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": false }, "attributes": {} } }, "total_flos": 1.627075303907328e+16, "train_batch_size": 64, "trial_name": null, "trial_params": null}checkpoint-200/config.jsonAdded+19
checkpoint-200/generation_config.jsonAdded+6
checkpoint-200/tokenizer.jsonAdded
checkpoint-200/tokenizer_config.jsonAdded+13
checkpoint-200/trainer_state.jsonAdded+194