Text Generation
Transformers
TensorBoard
Safetensors
PEFT
English
t5
text2text-generation
flan-t5
lora
hallucination
qa
Eval Results (legacy)
text-generation-inference
Instructions to use Pravesh390/flan-t5-finetuned-wrongqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Pravesh390/flan-t5-finetuned-wrongqa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Pravesh390/flan-t5-finetuned-wrongqa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Pravesh390/flan-t5-finetuned-wrongqa") model = AutoModelForSeq2SeqLM.from_pretrained("Pravesh390/flan-t5-finetuned-wrongqa", device_map="auto") - PEFT
How to use Pravesh390/flan-t5-finetuned-wrongqa with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Pravesh390/flan-t5-finetuned-wrongqa with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Pravesh390/flan-t5-finetuned-wrongqa" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Pravesh390/flan-t5-finetuned-wrongqa", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Pravesh390/flan-t5-finetuned-wrongqa
- SGLang
How to use Pravesh390/flan-t5-finetuned-wrongqa 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 "Pravesh390/flan-t5-finetuned-wrongqa" \ --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": "Pravesh390/flan-t5-finetuned-wrongqa", "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 "Pravesh390/flan-t5-finetuned-wrongqa" \ --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": "Pravesh390/flan-t5-finetuned-wrongqa", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Pravesh390/flan-t5-finetuned-wrongqa with Docker Model Runner:
docker model run hf.co/Pravesh390/flan-t5-finetuned-wrongqa
Training in progress, epoch 1
Browse files- README.md +46 -24
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,31 +1,53 @@
|
|
| 1 |
---
|
| 2 |
-
language: en
|
| 3 |
-
license: mit
|
| 4 |
-
tags:
|
| 5 |
-
- text2text-generation
|
| 6 |
-
- flan-t5
|
| 7 |
-
- wrong-answer
|
| 8 |
-
- hallucination
|
| 9 |
-
- fine-tuned
|
| 10 |
-
- custom-dataset
|
| 11 |
library_name: transformers
|
| 12 |
-
|
| 13 |
-
datasets:
|
| 14 |
-
- Pravesh390/qa_wrong_data
|
| 15 |
-
model_name: flan-t5-finetuned-wrongqa
|
| 16 |
base_model: google/flan-t5-base
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
---
|
| 18 |
-
# 🤖 flan-t5-finetuned-wrongqa
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
##
|
| 24 |
-
```python
|
| 25 |
-
from transformers import pipeline
|
| 26 |
-
qa = pipeline("text2text-generation", model="Pravesh390/flan-t5-finetuned-wrongqa")
|
| 27 |
-
qa("What is the capital of France?")[0]["generated_text"]
|
| 28 |
-
```
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
| 4 |
base_model: google/flan-t5-base
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
model-index:
|
| 8 |
+
- name: flan-t5-finetuned-wrongqa
|
| 9 |
+
results: []
|
| 10 |
---
|
|
|
|
| 11 |
|
| 12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
|
| 15 |
+
# flan-t5-finetuned-wrongqa
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [google/flan-t5-base](https://huggingface.co/google/flan-t5-base) on the None dataset.
|
| 18 |
+
|
| 19 |
+
## Model description
|
| 20 |
+
|
| 21 |
+
More information needed
|
| 22 |
+
|
| 23 |
+
## Intended uses & limitations
|
| 24 |
+
|
| 25 |
+
More information needed
|
| 26 |
+
|
| 27 |
+
## Training and evaluation data
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training procedure
|
| 32 |
+
|
| 33 |
+
### Training hyperparameters
|
| 34 |
+
|
| 35 |
+
The following hyperparameters were used during training:
|
| 36 |
+
- learning_rate: 5e-05
|
| 37 |
+
- train_batch_size: 2
|
| 38 |
+
- eval_batch_size: 8
|
| 39 |
+
- seed: 42
|
| 40 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 41 |
+
- lr_scheduler_type: linear
|
| 42 |
+
- num_epochs: 3
|
| 43 |
+
|
| 44 |
+
### Training results
|
| 45 |
+
|
| 46 |
+
|
| 47 |
|
| 48 |
+
### Framework versions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
- Transformers 4.53.2
|
| 51 |
+
- Pytorch 2.6.0+cu124
|
| 52 |
+
- Datasets 4.0.0
|
| 53 |
+
- Tokenizers 0.21.2
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 990345064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9062aeb14b1e3d31a29d54f74aebcc2d02879f4604c99986daf08f2fecd3058
|
| 3 |
size 990345064
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5368
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3db4e2b8ce02b38bb54cb68b2f142136fec7d9dc0640c9ec940e5c4898153b34
|
| 3 |
size 5368
|