Instructions to use arithmetic-circuit-overloading/gpt2-64D-3L-2H with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arithmetic-circuit-overloading/gpt2-64D-3L-2H with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="arithmetic-circuit-overloading/gpt2-64D-3L-2H")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("arithmetic-circuit-overloading/gpt2-64D-3L-2H") model = AutoModelForCausalLM.from_pretrained("arithmetic-circuit-overloading/gpt2-64D-3L-2H", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use arithmetic-circuit-overloading/gpt2-64D-3L-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-64D-3L-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-64D-3L-2H", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/arithmetic-circuit-overloading/gpt2-64D-3L-2H
- SGLang
How to use arithmetic-circuit-overloading/gpt2-64D-3L-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-64D-3L-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-64D-3L-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-64D-3L-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-64D-3L-2H", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use arithmetic-circuit-overloading/gpt2-64D-3L-2H with Docker Model Runner:
docker model run hf.co/arithmetic-circuit-overloading/gpt2-64D-3L-2H
Commit History
-
End of training
Verified signaturea98d149 -
Training in progress, epoch 20
Verified signaturee0b9130 -
Training in progress, epoch 19
Verified signatureb690c65 -
Training in progress, epoch 18
Verified signatureae13f2a -
Training in progress, epoch 17
Verified signature0ba20c2 -
Training in progress, epoch 16
Verified signature019c190 -
Training in progress, epoch 15
Verified signaturef88bc4c -
Training in progress, epoch 14
Verified signatureebba599 -
Training in progress, epoch 13
Verified signaturecaeb386 -
Training in progress, epoch 12
Verified signaturec05b5a3 -
Training in progress, epoch 11
Verified signature56b0c17 -
Training in progress, epoch 10
Verified signature9c6dd95 -
Training in progress, epoch 9
Verified signaturee450fb1 -
Training in progress, epoch 8
Verified signature9e5322a -
Training in progress, epoch 7
Verified signaturedaaec8d -
Training in progress, epoch 6
Verified signature30a1cbe -
Training in progress, epoch 5
Verified signature3a23980 -
Training in progress, epoch 4
Verified signature36d6888 -
Training in progress, epoch 3
Verified signatureee39fa8 -
Training in progress, epoch 2
Verified signature67c2ad1 -
Training in progress, epoch 1
Verified signature084bab9 -
Training in progress, epoch 4
Verified signaturea5c4b69 -
Training in progress, epoch 3
Verified signatured2c1686 -
Training in progress, epoch 2
Verified signature1de07c2 -
Training in progress, epoch 1
Verified signaturea4a78d5
-
End of training
Verified signature5bee59b -
Training in progress, epoch 10
Verified signature031106a -
Training in progress, epoch 9
Verified signature10fa6ec -
Training in progress, epoch 8
Verified signature19565d7 -
Training in progress, epoch 7
Verified signature8a958a9 -
Training in progress, epoch 6
Verified signaturec04c659 -
Training in progress, epoch 5
Verified signaturebc7698a -
Training in progress, epoch 4
Verified signature3cf8dad -
Training in progress, epoch 3
Verified signaturedb1b254 -
Training in progress, epoch 2
Verified signature2285ddc -
Training in progress, epoch 1
Verified signaturec3ff1ab -
Training in progress, epoch 1
Verified signature200d221 -
initial commit
Verified signatureced4b53