Text Generation
Transformers
PyTorch
TensorFlow
Safetensors
t5
text2text-generation
generated_from_keras_callback
text-generation-inference
Instructions to use readerbench/QAll-Flan-xl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use readerbench/QAll-Flan-xl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="readerbench/QAll-Flan-xl")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("readerbench/QAll-Flan-xl") model = AutoModelForSeq2SeqLM.from_pretrained("readerbench/QAll-Flan-xl") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use readerbench/QAll-Flan-xl with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "readerbench/QAll-Flan-xl" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "readerbench/QAll-Flan-xl", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/readerbench/QAll-Flan-xl
- SGLang
How to use readerbench/QAll-Flan-xl 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 "readerbench/QAll-Flan-xl" \ --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": "readerbench/QAll-Flan-xl", "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 "readerbench/QAll-Flan-xl" \ --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": "readerbench/QAll-Flan-xl", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use readerbench/QAll-Flan-xl with Docker Model Runner:
docker model run hf.co/readerbench/QAll-Flan-xl
Librarian Bot: Add base_model information to model
#1
by librarian-bot - opened
README.md
CHANGED
|
@@ -2,20 +2,54 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
tags:
|
| 4 |
- generated_from_keras_callback
|
| 5 |
-
model-index:
|
| 6 |
-
- name: QAll-Flan-xl
|
| 7 |
-
results: []
|
| 8 |
pipeline_tag: text2text-generation
|
| 9 |
widget:
|
| 10 |
-
- text:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
example_title: Question Answering
|
| 12 |
-
- text:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
example_title: Question Generation
|
| 14 |
-
- text:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
example_title: Question Complexity
|
| 16 |
-
- text:
|
| 17 |
-
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
---
|
| 20 |
|
| 21 |
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
tags:
|
| 4 |
- generated_from_keras_callback
|
|
|
|
|
|
|
|
|
|
| 5 |
pipeline_tag: text2text-generation
|
| 6 |
widget:
|
| 7 |
+
- text: 'Answer the question based on the context.
|
| 8 |
+
|
| 9 |
+
Context: The Review of Politics was founded in 1939 by Gurian, modeled after German
|
| 10 |
+
Catholic journals. It quickly emerged as part of an international Catholic intellectual
|
| 11 |
+
revival, offering an alternative vision to positivist philosophy. For 44 years,
|
| 12 |
+
the Review was edited by Gurian, Matthew Fitzsimons, Frederick Crosson, and Thomas
|
| 13 |
+
Stritch. Intellectual leaders included Gurian, Jacques Maritain, Frank O''Malley,
|
| 14 |
+
Leo Richard Ward, F. A. Hermens, and John U. Nef. It became a major forum for
|
| 15 |
+
political ideas and modern political concerns, especially from a Catholic and
|
| 16 |
+
scholastic tradition.
|
| 17 |
+
|
| 18 |
+
Question: Who was the last editor of the Review of Political Science?'
|
| 19 |
example_title: Question Answering
|
| 20 |
+
- text: 'Generate a question based on the context and the answer.
|
| 21 |
+
|
| 22 |
+
Context: The Review of Politics was founded in 1939 by Gurian, modeled after German
|
| 23 |
+
Catholic journals. It quickly emerged as part of an international Catholic intellectual
|
| 24 |
+
revival, offering an alternative vision to positivist philosophy. For 44 years,
|
| 25 |
+
the Review was edited by Gurian, Matthew Fitzsimons, Frederick Crosson, and Thomas
|
| 26 |
+
Stritch. Intellectual leaders included Gurian, Jacques Maritain, Frank O''Malley,
|
| 27 |
+
Leo Richard Ward, F. A. Hermens, and John U. Nef. It became a major forum for
|
| 28 |
+
political ideas and modern political concerns, especially from a Catholic and
|
| 29 |
+
scholastic tradition.
|
| 30 |
+
|
| 31 |
+
Answer: Thomas Stritch'
|
| 32 |
example_title: Question Generation
|
| 33 |
+
- text: 'Classify the complexity of the following question based on the text as either
|
| 34 |
+
deep or shallow.
|
| 35 |
+
|
| 36 |
+
Text: Many people who live in California are very concerned about the earth. They
|
| 37 |
+
are worried that the earth is warming too much.
|
| 38 |
+
|
| 39 |
+
Question: How can people in California and outside of California prevent warming?'
|
| 40 |
example_title: Question Complexity
|
| 41 |
+
- text: 'Classify the complexity of the following question based on the text as either
|
| 42 |
+
deep or shallow.
|
| 43 |
|
| 44 |
+
Text: Many people who live in California are very concerned about the earth. They
|
| 45 |
+
are worried that the earth is warming too much.
|
| 46 |
+
|
| 47 |
+
Question: What does it mean to warm the earth too much?'
|
| 48 |
+
example_title: Question Category
|
| 49 |
+
base_model: google/flan-t5-xl
|
| 50 |
+
model-index:
|
| 51 |
+
- name: QAll-Flan-xl
|
| 52 |
+
results: []
|
| 53 |
---
|
| 54 |
|
| 55 |
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|