Text Generation
Transformers
ONNX
Safetensors
mt5
text2text-generation
fact-decomposition
propositionizer
multilingual
Instructions to use liliplanet/propositionizer-mt5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use liliplanet/propositionizer-mt5-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="liliplanet/propositionizer-mt5-small")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("liliplanet/propositionizer-mt5-small") model = AutoModelForSeq2SeqLM.from_pretrained("liliplanet/propositionizer-mt5-small") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use liliplanet/propositionizer-mt5-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "liliplanet/propositionizer-mt5-small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "liliplanet/propositionizer-mt5-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/liliplanet/propositionizer-mt5-small
- SGLang
How to use liliplanet/propositionizer-mt5-small 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 "liliplanet/propositionizer-mt5-small" \ --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": "liliplanet/propositionizer-mt5-small", "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 "liliplanet/propositionizer-mt5-small" \ --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": "liliplanet/propositionizer-mt5-small", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use liliplanet/propositionizer-mt5-small with Docker Model Runner:
docker model run hf.co/liliplanet/propositionizer-mt5-small
Upload folder using huggingface_hub
Browse files- config.json +1 -1
- generation_config.json +4 -3
- model.safetensors +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"MT5ForConditionalGeneration"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "liliplanet/propositionizer-mt5-small",
|
| 3 |
"architectures": [
|
| 4 |
"MT5ForConditionalGeneration"
|
| 5 |
],
|
generation_config.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"_from_model_config": true,
|
| 3 |
"decoder_start_token_id": 0,
|
| 4 |
-
"
|
| 5 |
-
"
|
|
|
|
|
|
|
| 6 |
"transformers_version": "4.46.3"
|
| 7 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"decoder_start_token_id": 0,
|
| 3 |
+
"max_new_tokens": 256,
|
| 4 |
+
"no_repeat_ngram_size": 3,
|
| 5 |
+
"num_beams": 4,
|
| 6 |
+
"repetition_penalty": 2.0,
|
| 7 |
"transformers_version": "4.46.3"
|
| 8 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1200729512
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2fcbdd96285dd34f396f90c68816f1bc5cbe8128582dab255bf0085f5f62ddfa
|
| 3 |
size 1200729512
|