Instructions to use Ashraf-kasem/custom_gpt2_frames_text_continue 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_continue 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_continue")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ashraf-kasem/custom_gpt2_frames_text_continue") model = AutoModelForCausalLM.from_pretrained("Ashraf-kasem/custom_gpt2_frames_text_continue", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ashraf-kasem/custom_gpt2_frames_text_continue 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_continue" # 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_continue", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ashraf-kasem/custom_gpt2_frames_text_continue
- SGLang
How to use Ashraf-kasem/custom_gpt2_frames_text_continue 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_continue" \ --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_continue", "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_continue" \ --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_continue", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ashraf-kasem/custom_gpt2_frames_text_continue with Docker Model Runner:
docker model run hf.co/Ashraf-kasem/custom_gpt2_frames_text_continue
Commit History
-
last training
3f3dcd2 -
Training in progress epoch 99
30e0d08 -
Training in progress epoch 98
14e4917 -
Training in progress epoch 97
c4df154 -
Training in progress epoch 96
f44e34b -
Training in progress epoch 95
3cbc054 -
Training in progress epoch 94
5c1ced2 -
Training in progress epoch 93
2c31a46 -
Training in progress epoch 92
a813c31 -
Training in progress epoch 91
5e5f982 -
Training in progress epoch 90
2a180d0 -
Training in progress epoch 89
9664bc5 -
Training in progress epoch 88
cff68c9 -
Training in progress epoch 87
d36c85a -
Training in progress epoch 86
a9bbfcd -
Training in progress epoch 85
a85b7ef -
Training in progress epoch 84
a86fd45 -
Training in progress epoch 83
fa52427 -
Training in progress epoch 82
307cc41 -
Training in progress epoch 81
1498b0e -
Training in progress epoch 80
50a8b8e -
Training in progress epoch 79
793f44b -
Training in progress epoch 78
4b0a0db -
Training in progress epoch 77
ff729a5 -
Training in progress epoch 76
fbe68d2 -
Training in progress epoch 75
a780c01 -
Training in progress epoch 74
aca554f -
Training in progress epoch 73
80bd71f -
Training in progress epoch 72
8f10797 -
Training in progress epoch 71
2810726 -
Training in progress epoch 70
021c4e3 -
Training in progress epoch 69
098c30c -
Training in progress epoch 68
387aaf6
-
Training in progress epoch 67
f8558b1 -
Training in progress epoch 66
bfc615b -
Training in progress epoch 65
2dd58b2 -
Training in progress epoch 64
ae0ef70 -
Training in progress epoch 63
baec5ac -
Training in progress epoch 62
19038ac -
Training in progress epoch 61
21e600c -
Training in progress epoch 60
6a0b5c5 -
Training in progress epoch 59
50738c8 -
Training in progress epoch 58
ee5d73b -
Training in progress epoch 57
b663e02 -
Training in progress epoch 56
15a4fc9 -
Training in progress epoch 55
d24555c -
Training in progress epoch 54
5807efe -
Training in progress epoch 53
88ebb32 -
Training in progress epoch 52
5314d49 -
Training in progress epoch 51
b23cd79