Instructions to use Ashraf-kasem/custom_gpt2_frames_text with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ashraf-kasem/custom_gpt2_frames_text with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ashraf-kasem/custom_gpt2_frames_text")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ashraf-kasem/custom_gpt2_frames_text") model = AutoModelForCausalLM.from_pretrained("Ashraf-kasem/custom_gpt2_frames_text", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ashraf-kasem/custom_gpt2_frames_text with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ashraf-kasem/custom_gpt2_frames_text" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ashraf-kasem/custom_gpt2_frames_text", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ashraf-kasem/custom_gpt2_frames_text
- SGLang
How to use Ashraf-kasem/custom_gpt2_frames_text 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 "Ashraf-kasem/custom_gpt2_frames_text" \ --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": "Ashraf-kasem/custom_gpt2_frames_text", "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 "Ashraf-kasem/custom_gpt2_frames_text" \ --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": "Ashraf-kasem/custom_gpt2_frames_text", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ashraf-kasem/custom_gpt2_frames_text with Docker Model Runner:
docker model run hf.co/Ashraf-kasem/custom_gpt2_frames_text
Commit History
-
revert commit
4f45b85 -
Training in progress epoch 29
a7cd8ae -
Training in progress epoch 28
0f539df -
Training in progress epoch 27
7aa96d6 -
Training in progress epoch 26
cb859af -
Training in progress epoch 25
a79fd10 -
Training in progress epoch 24
5091825 -
Training in progress epoch 23
aa93643 -
Training in progress epoch 22
72e37bf -
Training in progress epoch 21
f600557 -
Training in progress epoch 20
48b16e4 -
Training in progress epoch 19
4f7c844 -
Training in progress epoch 18
05131a4 -
Training in progress epoch 17
ac6703c -
Training in progress epoch 16
5b4a4e1 -
Training in progress epoch 15
e571bae -
Training in progress epoch 14
7b941fe -
Training in progress epoch 13
5e34fa9 -
Training in progress epoch 12
9a145cd -
Training in progress epoch 11
9e54aae -
Training in progress epoch 10
de27863 -
Training in progress epoch 9
2a7edde
-
Training in progress epoch 8
4945454 -
Training in progress epoch 7
950b6fc -
Training in progress epoch 6
3f7e277 -
Training in progress epoch 5
ec39ee7 -
Training in progress epoch 4
890539e -
Training in progress epoch 3
f4d2706 -
Training in progress epoch 2
b5a0bc5 -
Training in progress epoch 1
a80400c -
Training in progress epoch 0
f50496d -
Training in progress epoch 0
617cef1 -
initial commit
3875df5