Run this model with HF Jobs
Run CrossBaseArithmetic/arithmetic-model-L2_H2_D32 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/CrossBaseArithmetic/arithmetic-model-L2_H2_D32. 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/CrossBaseArithmetic/arithmetic-model-L2_H2_D32 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/CrossBaseArithmetic/arithmetic-model-L2_H2_D32. 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/CrossBaseArithmetic/arithmetic-model-L2_H2_D32. 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 CrossBaseArithmetic/arithmetic-model-L2_H2_D32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CrossBaseArithmetic/arithmetic-model-L2_H2_D32 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CrossBaseArithmetic/arithmetic-model-L2_H2_D32")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CrossBaseArithmetic/arithmetic-model-L2_H2_D32") model = AutoModelForCausalLM.from_pretrained("CrossBaseArithmetic/arithmetic-model-L2_H2_D32", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CrossBaseArithmetic/arithmetic-model-L2_H2_D32 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CrossBaseArithmetic/arithmetic-model-L2_H2_D32" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CrossBaseArithmetic/arithmetic-model-L2_H2_D32", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CrossBaseArithmetic/arithmetic-model-L2_H2_D32
- SGLang
How to use CrossBaseArithmetic/arithmetic-model-L2_H2_D32 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 "CrossBaseArithmetic/arithmetic-model-L2_H2_D32" \ --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": "CrossBaseArithmetic/arithmetic-model-L2_H2_D32", "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 "CrossBaseArithmetic/arithmetic-model-L2_H2_D32" \ --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": "CrossBaseArithmetic/arithmetic-model-L2_H2_D32", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CrossBaseArithmetic/arithmetic-model-L2_H2_D32 with Docker Model Runner:
docker model run hf.co/CrossBaseArithmetic/arithmetic-model-L2_H2_D32
Training in progress, epoch 1
Browse filesFiles changed (5)
27 unmodified lines2829303132333427 unmodified lines"summary_type": "cls_index","summary_use_proj": true,"tie_word_embeddings": true,"transformers_version": "5.0.0","use_cache": false,"vocab_size": 23}27 unmodified lines2829303132333427 unmodified lines"summary_type": "cls_index","summary_use_proj": true,"tie_word_embeddings": true,"transformers_version": "5.12.1","use_cache": false,"vocab_size": 23}
6 unmodified lines7891011126 unmodified lines"output_attentions": false,"output_hidden_states": false,"pad_token_id": 0,"transformers_version": "5.0.0","use_cache": true}6 unmodified lines7891011126 unmodified lines"output_attentions": false,"output_hidden_states": false,"pad_token_id": 0,"transformers_version": "5.12.1","use_cache": true}
123version https://git-lfs.github.com/spec/v1oid sha256:0077fa7f45ef76cfb7809b5875ff34d1cb22b11295bb3412b533d59d3c532a36size 140200123version https://git-lfs.github.com/spec/v1oid sha256:f744870e98a86b1ea43b34958b3683b163677882623cceb1f665473721dae1fasize 140200
2 unmodified lines3456782 unmodified lines"bos_token": "<bos>","eos_token": "<eos>","is_local": false,"model_max_length": 1000000000000000019884624838656,"pad_token": "<pad>","tokenizer_class": "TokenizersBackend",2 unmodified lines34567892 unmodified lines"bos_token": "<bos>","eos_token": "<eos>","is_local": false,"local_files_only": false,"model_max_length": 1000000000000000019884624838656,"pad_token": "<pad>","tokenizer_class": "TokenizersBackend",
123version https://git-lfs.github.com/spec/v1oid sha256:b07812a604e098b55dca4176f3897044a9fc863c4b9501da3bfdc72f6249986asize 5265123version https://git-lfs.github.com/spec/v1oid sha256:156f7ef0e6673e07103d1d43dfbcaab9d11e07f854a911578eeb98f7eb5a4174size 5265
config.json+1-1
generation_config.json+1-1
model.safetensors+1-1
tokenizer_config.json+1
training_args.bin+1-1