Run this model with HF Jobs
Run meihant/AnonymousModel-mht 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/meihant/AnonymousModel-mht. 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/meihant/AnonymousModel-mht 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/meihant/AnonymousModel-mht. 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/meihant/AnonymousModel-mht. 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 meihant/AnonymousModel-mht with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meihant/AnonymousModel-mht with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="meihant/AnonymousModel-mht")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("meihant/AnonymousModel-mht", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use meihant/AnonymousModel-mht with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "meihant/AnonymousModel-mht" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meihant/AnonymousModel-mht", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/meihant/AnonymousModel-mht
- SGLang
How to use meihant/AnonymousModel-mht 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 "meihant/AnonymousModel-mht" \ --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": "meihant/AnonymousModel-mht", "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 "meihant/AnonymousModel-mht" \ --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": "meihant/AnonymousModel-mht", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use meihant/AnonymousModel-mht with Docker Model Runner:
docker model run hf.co/meihant/AnonymousModel-mht
Add models/FCP-SmolLM2-360M-20B/checkpoints/20B artifacts 0-6
Browse filesFiles changed (7)
- models/FCP-SmolLM2-360M-20B/checkpoints/20B/chat_template.jinjaAdded+8
- models/FCP-SmolLM2-360M-20B/checkpoints/20B/config.jsonAdded+34
- models/FCP-SmolLM2-360M-20B/checkpoints/20B/generation_config.jsonAdded+10
- models/FCP-SmolLM2-360M-20B/checkpoints/20B/model.safetensorsAdded+3
- models/FCP-SmolLM2-360M-20B/checkpoints/20B/tokenizer.jsonAdded
- models/FCP-SmolLM2-360M-20B/checkpoints/20B/tokenizer_config.jsonAdded+15
- models/FCP-SmolLM2-360M-20B/checkpoints/20B/training_progress.jsonAdded+65
12345678{% for message in messages %}{% if message['role'] == 'system' %}<|im_start|>system{{ message['content'] }}<|im_end|>{% elif message['role'] == 'user' %}<|im_start|>user{{ message['content'] }}<|im_end|>{% elif message['role'] == 'assistant' %}<|im_start|>assistant{{ message['content'] }}<|im_end|>{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant{% endif %}12345678910111213141516171819202122232425262728293031323334{ "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 0, "dtype": "bfloat16", "eos_token_id": 0, "head_dim": 64, "hidden_act": "silu", "hidden_size": 960, "initializer_range": 0.02, "intermediate_size": 2560, "is_llama_config": true, "max_position_embeddings": 8192, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 15, "num_hidden_layers": 32, "num_key_value_heads": 5, "pad_token_id": 0, "pretraining_tp": 1, "rms_norm_eps": 1e-05, "rope_interleaved": false, "rope_parameters": { "rope_theta": 100000, "rope_type": "default" }, "tie_word_embeddings": true, "transformers_version": "5.6.2", "use_cache": true, "vocab_size": 49158}12345678910{ "_from_model_config": true, "bos_token_id": 0, "eos_token_id": 0, "output_attentions": false, "output_hidden_states": false, "pad_token_id": 0, "transformers_version": "5.6.2", "use_cache": true}123version https://git-lfs.github.com/spec/v1oid sha256:940af68d592c5bf2a920c259c808c17943127800cb4a56ca8326f52a64dfa551size 723686432123456789101112131415{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": "<|endoftext|>", "clean_up_tokenization_spaces": false, "eos_token": "<|endoftext|>", "errors": "replace", "is_local": true, "local_files_only": true, "model_max_length": 8192, "pad_token": "<|endoftext|>", "tokenizer_class": "GPT2Tokenizer", "unk_token": "<|endoftext|>", "vocab_size": 49152}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ "passed": true, "step": 95158, "body_tokens": 19999999925, "source_tokens": 20000000040, "training_tokens": 49672486395, "job_id": "2724341", "checkpoint_unix_time": 1794138157.597654, "training_seconds": 192702.03707354283, "training_gpu_hours": 214.1133745278656, "milestone": { "segment": 9, "end_row": 49131472, "source_tokens": 20000000040, "target_tokens": 20000000000, "start_pack": 10962290, "end_pack": 12179735 }, "config": { "seed": 42, "window": 4096, "world_size": 4, "global_batch": 128, "learning_rate": 0.0005, "warmup_steps": 2000, "scheduler": "constant_with_warmup", "adam_betas": [ 0.9, 0.95 ], "adam_epsilon": 1e-08, "weight_decay": 0.01, "max_grad_norm": 1.0, "save_body_tokens": 2000000000, "initialization": "seed42 random SmolLM2-360M architecture, shared expanded vocabulary; no pretrained weights", "precision": "BF16 parameters, gradients and AdamW moments; fused linear CE", "loss": "global supervised-token mean, summed loss normalized before gradient accumulation", "packing": "128 global 4096 BFD packs/update, 1000-record candidate buffers; independent source-fragment attention and reset positions; final partial update", "data": "ten shared native-token 2B source segments, stop at 20B; source order and BFD buffers stay inside each segment", "endings": "Vanilla native EOS; FCP ChatML im_end newline; historical 4096 truncation", "checkpoint": "inference-only permanent at each shared source segment end; rolling recovery every 1000 steps (latest 1); 20B endpoint only", "repo": "meihant/AnonymousModel-mht" }, "code_hashes": { "bfd.py": "ba37e45bfe6882b7c1747bfaafbaf55611f0cdfa2971ad16cd58d88a4009640d", "config.py": "6b617d0a45048a8851b617f29608602dc7e290166749dd1551433033c44ec214", "encoding.py": "3aed0431713870e35595f922f22be6a4cce123877f493de5bb1f848809683ab4", "fcp_format.py": "bef4a540107f949af0e9a2149419ea05cdc4f52385b66eaed84ef25dc40a8305", "gate.py": "6c862bfac6e1bd38988cd161804ff9ecb16418e08a031992dfa2f1f78a99ef37", "layout.py": "f30a8a77cb97a4bf8d33248a14bbc9112c358b0a0162255d7a77abb15f8f7e2b", "model.py": "f0fb8a8789fbf0cd2d7033cf813fa40dc4ebf47617f1f3b70dafa419842eeb5e", "prepare_packs.py": "9111f8372105c8381c3b46cd6f31e38ba8d0c4a2c7afde28f4b5a8215c0a813e", "runtime.py": "628f7ab759bc4e1047e86dbe71f143fdffa54f16ed498217e7abe82c114c1f7a", "train.py": "ea3a7991373ca107118011db93c15e3c18d8f94695909ec26d686ab228e292b3", "upload.py": "747a9bce54eafc35b1fa14ba5aa653908bf8f81f24b5e526bce9c947b4ef3182", "validate_data.py": "f8dec33d7fc01b54b562ede8cfb87ecbf529dd68be8b48cf9147e6bd3a9324fa", "verify.py": "cec4349e3b7d5adcab0f4377b0416cc87b6d810c749833e7b455dbd7e9462a97", "checkpoint_files.py": "3a4cd9b1cc858e9c48dc5c00b92a1d4e86330643d03fdb9df361c6ed85788155" }, "final": true, "method": "fcp", "state_signature": null, "checkpoint_kind": "evaluation", "resumable": false}models/FCP-SmolLM2-360M-20B/checkpoints/20B/chat_template.jinjaAdded+8
models/FCP-SmolLM2-360M-20B/checkpoints/20B/config.jsonAdded+34
models/FCP-SmolLM2-360M-20B/checkpoints/20B/generation_config.jsonAdded+10
models/FCP-SmolLM2-360M-20B/checkpoints/20B/model.safetensorsAdded+3
models/FCP-SmolLM2-360M-20B/checkpoints/20B/tokenizer.jsonAdded
models/FCP-SmolLM2-360M-20B/checkpoints/20B/tokenizer_config.jsonAdded+15
models/FCP-SmolLM2-360M-20B/checkpoints/20B/training_progress.jsonAdded+65