Instructions to use arithmetic-circuit-overloading/gpt2-128D-2L-2H with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arithmetic-circuit-overloading/gpt2-128D-2L-2H with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="arithmetic-circuit-overloading/gpt2-128D-2L-2H")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("arithmetic-circuit-overloading/gpt2-128D-2L-2H") model = AutoModelForCausalLM.from_pretrained("arithmetic-circuit-overloading/gpt2-128D-2L-2H", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use arithmetic-circuit-overloading/gpt2-128D-2L-2H with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "arithmetic-circuit-overloading/gpt2-128D-2L-2H" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "arithmetic-circuit-overloading/gpt2-128D-2L-2H", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/arithmetic-circuit-overloading/gpt2-128D-2L-2H
- SGLang
How to use arithmetic-circuit-overloading/gpt2-128D-2L-2H 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 "arithmetic-circuit-overloading/gpt2-128D-2L-2H" \ --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": "arithmetic-circuit-overloading/gpt2-128D-2L-2H", "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 "arithmetic-circuit-overloading/gpt2-128D-2L-2H" \ --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": "arithmetic-circuit-overloading/gpt2-128D-2L-2H", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use arithmetic-circuit-overloading/gpt2-128D-2L-2H with Docker Model Runner:
docker model run hf.co/arithmetic-circuit-overloading/gpt2-128D-2L-2H
Commit History
-
End of training
Verified signaturefaafbe9 -
Training in progress, epoch 20
Verified signature83e10b6 -
Training in progress, epoch 19
Verified signature3bb0def -
Training in progress, epoch 18
Verified signature717538f -
Training in progress, epoch 17
Verified signature91e7ba1 -
Training in progress, epoch 16
Verified signaturec40a0e8 -
Training in progress, epoch 15
Verified signature68128ef -
Training in progress, epoch 14
Verified signature3ee179f -
Training in progress, epoch 13
Verified signature1c26fed -
Training in progress, epoch 12
Verified signature01cd36e -
Training in progress, epoch 11
Verified signaturefc3f32a -
Training in progress, epoch 10
Verified signature0cb2602 -
Training in progress, epoch 9
Verified signaturede4eff6 -
Training in progress, epoch 8
Verified signature83c8d5a -
Training in progress, epoch 7
Verified signature2c93239 -
Training in progress, epoch 6
Verified signaturebee527a -
Training in progress, epoch 5
Verified signature22f2984 -
Training in progress, epoch 4
Verified signature53ad0e5 -
Training in progress, epoch 3
Verified signaturef66c952 -
Training in progress, epoch 2
Verified signatureac5ceea -
Training in progress, epoch 1
Verified signatureb7d9eb1 -
Training in progress, epoch 5
Verified signaturec72baa8 -
Training in progress, epoch 4
Verified signature2d9ff58 -
Training in progress, epoch 3
Verified signaturec784fa1 -
Training in progress, epoch 2
Verified signature0486cd2 -
Training in progress, epoch 1
Verified signaturefb13cc4
-
End of training
Verified signature21dc231 -
Training in progress, epoch 10
Verified signatured3d5723 -
Training in progress, epoch 9
Verified signature6039a7e -
Training in progress, epoch 8
Verified signaturee4b0193 -
Training in progress, epoch 7
Verified signature6ad4a51 -
Training in progress, epoch 6
Verified signaturef03c4f5 -
Training in progress, epoch 5
Verified signature2f08665 -
Training in progress, epoch 4
Verified signatured1c6039 -
Training in progress, epoch 3
Verified signature8028cae -
Training in progress, epoch 2
Verified signaturebcf58e9 -
Training in progress, epoch 1
Verified signature972db91 -
Training in progress, epoch 1
Verified signaturefaef70f -
initial commit
Verified signature97d06bb