Instructions to use arithmetic-circuit-overloading/gpt2-64D-2L-4H with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arithmetic-circuit-overloading/gpt2-64D-2L-4H with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="arithmetic-circuit-overloading/gpt2-64D-2L-4H")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("arithmetic-circuit-overloading/gpt2-64D-2L-4H") model = AutoModelForCausalLM.from_pretrained("arithmetic-circuit-overloading/gpt2-64D-2L-4H", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use arithmetic-circuit-overloading/gpt2-64D-2L-4H 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-64D-2L-4H" # 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-64D-2L-4H", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/arithmetic-circuit-overloading/gpt2-64D-2L-4H
- SGLang
How to use arithmetic-circuit-overloading/gpt2-64D-2L-4H 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-64D-2L-4H" \ --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-64D-2L-4H", "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-64D-2L-4H" \ --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-64D-2L-4H", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use arithmetic-circuit-overloading/gpt2-64D-2L-4H with Docker Model Runner:
docker model run hf.co/arithmetic-circuit-overloading/gpt2-64D-2L-4H
Commit History
-
End of training
Verified signaturedc0720a -
Training in progress, epoch 20
Verified signatureeebb3ce -
Training in progress, epoch 19
Verified signaturef093fe0 -
Training in progress, epoch 18
Verified signatureeb7e61b -
Training in progress, epoch 17
Verified signature37cb183 -
Training in progress, epoch 16
Verified signature1258ef3 -
Training in progress, epoch 15
Verified signature09e5ca2 -
Training in progress, epoch 14
Verified signature5913c93 -
Training in progress, epoch 13
Verified signatured95c762 -
Training in progress, epoch 12
Verified signaturee2ad33c -
Training in progress, epoch 11
Verified signature7c59a0a -
Training in progress, epoch 10
Verified signatureb1c3fe5 -
Training in progress, epoch 9
Verified signaturebb52988 -
Training in progress, epoch 8
Verified signatureaf1d25b -
Training in progress, epoch 7
Verified signature52ec353 -
Training in progress, epoch 6
Verified signature557a163 -
Training in progress, epoch 5
Verified signature4cd1612 -
Training in progress, epoch 4
Verified signature27b44a3 -
Training in progress, epoch 3
Verified signature350a2a6 -
Training in progress, epoch 2
Verified signatureba98f6b -
Training in progress, epoch 1
Verified signature07d2ae7 -
End of training
Verified signature10e20df -
Training in progress, epoch 10
Verified signatureec2d6d2
-
Training in progress, epoch 9
Verified signatureb247805 -
Training in progress, epoch 8
Verified signature2bfaead -
Training in progress, epoch 7
Verified signature3eb3f23 -
Training in progress, epoch 6
Verified signature8254151 -
Training in progress, epoch 5
Verified signature09d5fea -
Training in progress, epoch 4
Verified signaturecec3417 -
Training in progress, epoch 3
Verified signature59bb37a -
Training in progress, epoch 2
Verified signature78ed834 -
Training in progress, epoch 1
Verified signature1c788d6 -
initial commit
Verified signature7a269ea