Instructions to use CrossBaseArithmetic/arithmetic-model-L1_H8_D64 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CrossBaseArithmetic/arithmetic-model-L1_H8_D64 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CrossBaseArithmetic/arithmetic-model-L1_H8_D64")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CrossBaseArithmetic/arithmetic-model-L1_H8_D64") model = AutoModelForCausalLM.from_pretrained("CrossBaseArithmetic/arithmetic-model-L1_H8_D64", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CrossBaseArithmetic/arithmetic-model-L1_H8_D64 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CrossBaseArithmetic/arithmetic-model-L1_H8_D64" # 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-L1_H8_D64", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CrossBaseArithmetic/arithmetic-model-L1_H8_D64
- SGLang
How to use CrossBaseArithmetic/arithmetic-model-L1_H8_D64 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-L1_H8_D64" \ --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-L1_H8_D64", "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-L1_H8_D64" \ --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-L1_H8_D64", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CrossBaseArithmetic/arithmetic-model-L1_H8_D64 with Docker Model Runner:
docker model run hf.co/CrossBaseArithmetic/arithmetic-model-L1_H8_D64
Training in progress, epoch 1
Browse filesFiles changed (6)
- config.jsonAdded+34
- generation_config.jsonAdded+12
- model.safetensorsAdded+3
- tokenizer.jsonAdded+117
- tokenizer_config.jsonAdded+11
- training_args.binAdded+3
12345678910111213141516171819202122232425262728293031323334{ "activation_function": "gelu_new", "add_cross_attention": false, "architectures": [ "GPT2LMHeadModel" ], "attn_pdrop": 0.0, "bos_token_id": 1, "dtype": "float32", "embd_pdrop": 0.0, "eos_token_id": 2, "initializer_range": 0.02, "layer_norm_epsilon": 1e-05, "model_type": "gpt2", "n_embd": 64, "n_head": 8, "n_inner": 256, "n_layer": 1, "n_positions": 256, "pad_token_id": 0, "reorder_and_upcast_attn": false, "resid_pdrop": 0.0, "scale_attn_by_inverse_layer_idx": false, "scale_attn_weights": true, "summary_activation": null, "summary_first_dropout": 0.0, "summary_proj_to_labels": true, "summary_type": "cls_index", "summary_use_proj": true, "tie_word_embeddings": true, "transformers_version": "5.12.0", "use_cache": false, "vocab_size": 23}123456789101112{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": [ 2 ], "output_attentions": false, "output_hidden_states": false, "pad_token_id": 0, "transformers_version": "5.12.0", "use_cache": true}123version https://git-lfs.github.com/spec/v1oid sha256:8b0de9d87d563c6517028bd1dc33275d01a63c3b75b9f3fd57fba0a5839aa4efsize 273368123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117{ "version": "1.0", "truncation": null, "padding": { "strategy": "BatchLongest", "direction": "Left", "pad_to_multiple_of": null, "pad_id": 0, "pad_type_id": 0, "pad_token": "<pad>" }, "added_tokens": [ { "id": 0, "content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, { "id": 1, "content": "<bos>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, { "id": 2, "content": "<eos>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true }, { "id": 3, "content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": false, "special": true } ], "normalizer": null, "pre_tokenizer": { "type": "Split", "pattern": { "Regex": "[\\s\\S]" }, "behavior": "Isolated", "invert": false }, "post_processor": { "type": "TemplateProcessing", "single": [ { "Sequence": { "id": "A", "type_id": 0 } } ], "pair": [ { "Sequence": { "id": "A", "type_id": 0 } }, { "Sequence": { "id": "B", "type_id": 1 } } ], "special_tokens": {} }, "decoder": { "type": "Fuse" }, "model": { "type": "WordLevel", "vocab": { "<pad>": 0, "<bos>": 1, "<eos>": 2, "<unk>": 3, "\n": 4, "+": 5, "0": 6, "1": 7, "2": 8, "3": 9, "4": 10, "5": 11, "6": 12, "7": 13, "8": 14, "9": 15, "=": 16, "A": 17, "B": 18, "C": 19, "D": 20, "E": 21, "F": 22 }, "unk_token": "<unk>" }}1234567891011{ "backend": "tokenizers", "bos_token": "<bos>", "eos_token": "<eos>", "is_local": false, "local_files_only": false, "model_max_length": 1000000000000000019884624838656, "pad_token": "<pad>", "tokenizer_class": "TokenizersBackend", "unk_token": "<unk>"}123version https://git-lfs.github.com/spec/v1oid sha256:7ed260d362bad3034292472a6e170d0fada85f4784f34180075ae71437408b7asize 5265config.jsonAdded+34
generation_config.jsonAdded+12
model.safetensorsAdded+3
tokenizer.jsonAdded+117
tokenizer_config.jsonAdded+11
training_args.binAdded+3