Instructions to use arithmetic-circuit-overloading/gpt2-32D-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-32D-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-32D-2L-2H")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("arithmetic-circuit-overloading/gpt2-32D-2L-2H") model = AutoModelForCausalLM.from_pretrained("arithmetic-circuit-overloading/gpt2-32D-2L-2H", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use arithmetic-circuit-overloading/gpt2-32D-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-32D-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-32D-2L-2H", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/arithmetic-circuit-overloading/gpt2-32D-2L-2H
- SGLang
How to use arithmetic-circuit-overloading/gpt2-32D-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-32D-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-32D-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-32D-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-32D-2L-2H", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use arithmetic-circuit-overloading/gpt2-32D-2L-2H with Docker Model Runner:
docker model run hf.co/arithmetic-circuit-overloading/gpt2-32D-2L-2H
Commit History
-
End of training
Verified signaturea046ffe -
Training in progress, epoch 20
Verified signature06fc853 -
Training in progress, epoch 19
Verified signaturec3bd48a -
Training in progress, epoch 18
Verified signature0a537ec -
Training in progress, epoch 17
Verified signature834d561 -
Training in progress, epoch 16
Verified signaturee52cdcf -
Training in progress, epoch 15
Verified signaturee8acf06 -
Training in progress, epoch 14
Verified signatured6958ee -
Training in progress, epoch 13
Verified signature311e968 -
Training in progress, epoch 12
Verified signature61322e6 -
Training in progress, epoch 11
Verified signaturef70624b -
Training in progress, epoch 10
Verified signature80b8eaf -
Training in progress, epoch 9
Verified signature4bb4e4b -
Training in progress, epoch 8
Verified signaturea1070ce -
Training in progress, epoch 7
Verified signature2209928 -
Training in progress, epoch 6
Verified signaturec1f1f3b -
Training in progress, epoch 5
Verified signaturef21d4d4 -
Training in progress, epoch 4
Verified signaturea702395 -
Training in progress, epoch 3
Verified signature0adba32 -
Training in progress, epoch 2
Verified signature8e8d421 -
Training in progress, epoch 1
Verified signature6204e26 -
Training in progress, epoch 5
Verified signaturec97edb8 -
Training in progress, epoch 4
Verified signature1745738 -
Training in progress, epoch 3
Verified signature2b972ac -
Training in progress, epoch 2
Verified signaturebca19c0 -
Training in progress, epoch 1
Verified signaturef59f7a6
-
End of training
Verified signatureaff4930 -
Training in progress, epoch 10
Verified signaturee100b1a -
Training in progress, epoch 9
Verified signature35d8f2d -
Training in progress, epoch 8
Verified signature9fa1d9c -
Training in progress, epoch 7
Verified signaturec711e2a -
Training in progress, epoch 6
Verified signaturec2feb9a -
Training in progress, epoch 5
Verified signature48d949d -
Training in progress, epoch 4
Verified signatureb0b3b65 -
Training in progress, epoch 3
Verified signaturebbbdec6 -
Training in progress, epoch 2
Verified signature2dfdd33 -
Training in progress, epoch 1
Verified signature48cefa2 -
Training in progress, epoch 2
Verified signaturec4d2548 -
Training in progress, epoch 1
Verified signatureed8c8d7 -
initial commit
Verified signature2ebb4bd