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 ·
a9bbfcd
1
Parent(s): a85b7ef
Training in progress epoch 86
Browse files
README.md
CHANGED
|
@@ -14,9 +14,9 @@ probably proofread and complete it, then remove this comment. -->
|
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [Ashraf-kasem/custom_gpt2_frames_text_continue](https://huggingface.co/Ashraf-kasem/custom_gpt2_frames_text_continue) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
-
- Train Loss: 0.
|
| 18 |
-
- Validation Loss: 2.
|
| 19 |
-
- Epoch:
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -128,6 +128,7 @@ The following hyperparameters were used during training:
|
|
| 128 |
| 0.6962 | 2.2769 | 83 |
|
| 129 |
| 0.6916 | 2.2813 | 84 |
|
| 130 |
| 0.6869 | 2.2838 | 85 |
|
|
|
|
| 131 |
|
| 132 |
|
| 133 |
### Framework versions
|
|
|
|
| 14 |
|
| 15 |
This model is a fine-tuned version of [Ashraf-kasem/custom_gpt2_frames_text_continue](https://huggingface.co/Ashraf-kasem/custom_gpt2_frames_text_continue) on an unknown dataset.
|
| 16 |
It achieves the following results on the evaluation set:
|
| 17 |
+
- Train Loss: 0.6823
|
| 18 |
+
- Validation Loss: 2.2853
|
| 19 |
+
- Epoch: 86
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
|
|
| 128 |
| 0.6962 | 2.2769 | 83 |
|
| 129 |
| 0.6916 | 2.2813 | 84 |
|
| 130 |
| 0.6869 | 2.2838 | 85 |
|
| 131 |
+
| 0.6823 | 2.2853 | 86 |
|
| 132 |
|
| 133 |
|
| 134 |
### Framework versions
|
checkpoint/extra_data.pickle
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 748191129
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9fde5ea3121479a97fb25dea7a4f68e9c2512edfe06f53a9503856983f1f2b0e
|
| 3 |
size 748191129
|
checkpoint/weights.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 374265936
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9b81c9c16afee3c7eaff16941143b10d73b7376407d32b07d492a4cd1f7e036
|
| 3 |
size 374265936
|
logs/train/events.out.tfevents.1674736212.ip-10-39-226-229.afrd.expertcity.com.7323.0.v2
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f9adf06a379356f0988b848deca6e52042984da650487076742f5fa5484a8de
|
| 3 |
+
size 11987995
|
logs/validation/events.out.tfevents.1674737933.ip-10-39-226-229.afrd.expertcity.com.7323.1.v2
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:404ed9cc24743f5f454b933c8d7b039d23ba5539e056d27148dfcb191a7a5dbc
|
| 3 |
+
size 13627
|
tf_model.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 374265936
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9b81c9c16afee3c7eaff16941143b10d73b7376407d32b07d492a4cd1f7e036
|
| 3 |
size 374265936
|