Instructions to use arithmetic-circuit-overloading/gpt2-64D-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-64D-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-64D-2L-2H")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("arithmetic-circuit-overloading/gpt2-64D-2L-2H") model = AutoModelForCausalLM.from_pretrained("arithmetic-circuit-overloading/gpt2-64D-2L-2H", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use arithmetic-circuit-overloading/gpt2-64D-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-64D-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-64D-2L-2H", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/arithmetic-circuit-overloading/gpt2-64D-2L-2H
- SGLang
How to use arithmetic-circuit-overloading/gpt2-64D-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-64D-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-64D-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-64D-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-64D-2L-2H", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use arithmetic-circuit-overloading/gpt2-64D-2L-2H with Docker Model Runner:
docker model run hf.co/arithmetic-circuit-overloading/gpt2-64D-2L-2H
Commit History
-
End of training
Verified signature40eb385 -
Training in progress, epoch 20
Verified signatureb5aaf0f -
Training in progress, epoch 19
Verified signatureadd6b17 -
Training in progress, epoch 18
Verified signature8cbdb1b -
Training in progress, epoch 17
Verified signature0315b81 -
Training in progress, epoch 16
Verified signature38bdc89 -
Training in progress, epoch 15
Verified signature58813ba -
Training in progress, epoch 14
Verified signatureb81b47f -
Training in progress, epoch 13
Verified signature080c6d1 -
Training in progress, epoch 12
Verified signature5be9367 -
Training in progress, epoch 11
Verified signature2aecf6b -
Training in progress, epoch 10
Verified signatureb4951e5 -
Training in progress, epoch 9
Verified signaturee4165da -
Training in progress, epoch 8
Verified signaturea5bf699 -
Training in progress, epoch 7
Verified signature09aadba -
Training in progress, epoch 6
Verified signature738b9cc -
Training in progress, epoch 5
Verified signature394d41e -
Training in progress, epoch 4
Verified signature8f3eedb -
Training in progress, epoch 3
Verified signature0bb7a65 -
Training in progress, epoch 2
Verified signaturece59f54 -
Training in progress, epoch 1
Verified signature891af3b -
Training in progress, epoch 6
Verified signaturee0e8df1 -
Training in progress, epoch 5
Verified signature7f0b609 -
Training in progress, epoch 4
Verified signaturec31d1eb -
Training in progress, epoch 3
Verified signature13da3c0 -
Training in progress, epoch 2
Verified signaturea58f974 -
Training in progress, epoch 1
Verified signature1887063
-
End of training
Verified signaturecc1c4d5 -
Training in progress, epoch 10
Verified signature1ef8a3f -
Training in progress, epoch 9
Verified signature639d241 -
Training in progress, epoch 8
Verified signature6ff4751 -
Training in progress, epoch 7
Verified signaturea6d3554 -
Training in progress, epoch 6
Verified signatured24a753 -
Training in progress, epoch 5
Verified signature296b241 -
Training in progress, epoch 4
Verified signature9debb8a -
Training in progress, epoch 3
Verified signatured1df19e -
Training in progress, epoch 2
Verified signaturecedd0da -
Training in progress, epoch 1
Verified signature8d7539c -
Training in progress, epoch 1
Verified signatureb14c161 -
initial commit
Verified signaturec1b7350