Instructions to use tristayqc/my_awesome_eli5_clm-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tristayqc/my_awesome_eli5_clm-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tristayqc/my_awesome_eli5_clm-model")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tristayqc/my_awesome_eli5_clm-model") model = AutoModelForCausalLM.from_pretrained("tristayqc/my_awesome_eli5_clm-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tristayqc/my_awesome_eli5_clm-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tristayqc/my_awesome_eli5_clm-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tristayqc/my_awesome_eli5_clm-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tristayqc/my_awesome_eli5_clm-model
- SGLang
How to use tristayqc/my_awesome_eli5_clm-model 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 "tristayqc/my_awesome_eli5_clm-model" \ --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": "tristayqc/my_awesome_eli5_clm-model", "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 "tristayqc/my_awesome_eli5_clm-model" \ --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": "tristayqc/my_awesome_eli5_clm-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use tristayqc/my_awesome_eli5_clm-model with Docker Model Runner:
docker model run hf.co/tristayqc/my_awesome_eli5_clm-model
End of training
Browse files
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
-
base_model:
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
datasets:
|
|
@@ -15,9 +15,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
# my_awesome_eli5_clm-model
|
| 17 |
|
| 18 |
-
This model is a fine-tuned version of [
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
- Loss: 0.
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
@@ -48,9 +48,9 @@ The following hyperparameters were used during training:
|
|
| 48 |
|
| 49 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 51 |
-
| 0.
|
| 52 |
-
| 0.
|
| 53 |
-
| 0.
|
| 54 |
|
| 55 |
|
| 56 |
### Framework versions
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
base_model: google/bigbird-roberta-base
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
datasets:
|
|
|
|
| 15 |
|
| 16 |
# my_awesome_eli5_clm-model
|
| 17 |
|
| 18 |
+
This model is a fine-tuned version of [google/bigbird-roberta-base](https://huggingface.co/google/bigbird-roberta-base) on the eli5_category dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.0044
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
|
|
| 48 |
|
| 49 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 51 |
+
| 0.0332 | 1.0 | 2000 | 0.0077 |
|
| 52 |
+
| 0.0105 | 2.0 | 4000 | 0.0022 |
|
| 53 |
+
| 0.0091 | 3.0 | 6000 | 0.0044 |
|
| 54 |
|
| 55 |
|
| 56 |
### Framework versions
|
generation_config.json
CHANGED
|
@@ -1,13 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"_from_model_config": true,
|
| 3 |
-
"bos_token_id":
|
| 4 |
-
"decoder_start_token_id": 2,
|
| 5 |
-
"early_stopping": true,
|
| 6 |
"eos_token_id": 2,
|
| 7 |
-
"
|
| 8 |
-
"forced_eos_token_id": 2,
|
| 9 |
-
"no_repeat_ngram_size": 3,
|
| 10 |
-
"num_beams": 4,
|
| 11 |
-
"pad_token_id": 1,
|
| 12 |
"transformers_version": "4.40.1"
|
| 13 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
|
|
|
|
|
|
| 4 |
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 0,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"transformers_version": "4.40.1"
|
| 7 |
}
|
runs/Apr25_02-36-08_bf3541846459/events.out.tfevents.1714012569.bf3541846459.310.0
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:74486dd1d9f39cf95b3f0f391358260a44d4be645925ed16718d85141c2aee23
|
| 3 |
+
size 8611
|
runs/Apr25_02-36-08_bf3541846459/events.out.tfevents.1714014837.bf3541846459.310.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f21a6e7889e0a3734e1bcfc7de2d7e759f124f28793eab457f333d114af44aea
|
| 3 |
+
size 359
|