Instructions to use Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer 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_original_tokenizer 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_original_tokenizer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer") model = AutoModelForCausalLM.from_pretrained("Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer 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_original_tokenizer" # 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_original_tokenizer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer
- SGLang
How to use Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer 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_original_tokenizer" \ --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_original_tokenizer", "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_original_tokenizer" \ --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_original_tokenizer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer with Docker Model Runner:
docker model run hf.co/Ashraf-kasem/custom_gpt2_frames_text_original_tokenizer
Commit History
-
Training in progress epoch 29
f40284d
-
Training in progress epoch 28
afea68b -
Training in progress epoch 27
74c36f9 -
Training in progress epoch 26
4daa16a -
Training in progress epoch 25
7b5bd6e -
Training in progress epoch 24
fc7b1f4 -
Training in progress epoch 23
f78c083 -
Training in progress epoch 22
8481d3c -
Training in progress epoch 21
81ac0a3 -
Training in progress epoch 20
3a33096 -
Training in progress epoch 19
96b8f99 -
Training in progress epoch 18
10c01a5 -
Training in progress epoch 17
c6011d5 -
Training in progress epoch 16
8aceab7 -
Training in progress epoch 15
9b0055c -
Training in progress epoch 14
9597daf -
Training in progress epoch 13
d93110d -
Training in progress epoch 12
2ac1784 -
Training in progress epoch 11
0403edd -
Training in progress epoch 10
4aef454 -
Training in progress epoch 9
dbcfbb5 -
Training in progress epoch 8
5f5af08 -
Training in progress epoch 7
4adb025 -
Training in progress epoch 6
7d2204f -
Training in progress epoch 5
4cb43c5 -
Training in progress epoch 4
ad2eb8e -
Training in progress epoch 3
1df98e8 -
Training in progress epoch 2
ceb5efc -
Training in progress epoch 1
8753975 -
Training in progress epoch 0
884dcb4
-
initial commit
d94ebd8