Text Generation
Transformers
Safetensors
English
t5
text2text-generation
grammar-correction
text-generation-inference
Instructions to use elizaveta-dev/T5-REF-CORRUPT-EN with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use elizaveta-dev/T5-REF-CORRUPT-EN with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="elizaveta-dev/T5-REF-CORRUPT-EN")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("elizaveta-dev/T5-REF-CORRUPT-EN") model = AutoModelForSeq2SeqLM.from_pretrained("elizaveta-dev/T5-REF-CORRUPT-EN", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use elizaveta-dev/T5-REF-CORRUPT-EN with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "elizaveta-dev/T5-REF-CORRUPT-EN" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "elizaveta-dev/T5-REF-CORRUPT-EN", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/elizaveta-dev/T5-REF-CORRUPT-EN
- SGLang
How to use elizaveta-dev/T5-REF-CORRUPT-EN 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 "elizaveta-dev/T5-REF-CORRUPT-EN" \ --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": "elizaveta-dev/T5-REF-CORRUPT-EN", "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 "elizaveta-dev/T5-REF-CORRUPT-EN" \ --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": "elizaveta-dev/T5-REF-CORRUPT-EN", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use elizaveta-dev/T5-REF-CORRUPT-EN with Docker Model Runner:
docker model run hf.co/elizaveta-dev/T5-REF-CORRUPT-EN
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -50,8 +50,10 @@ The model can perform automatic corrections of various referencing errors, inclu
|
|
| 50 |
### 1. Incorrect Citation Type (Parenthetical vs. Narrative)
|
| 51 |
|
| 52 |
*Example of mistake:* (Lopez 2018; Chen 2012) found that cultural context strongly influences translation strategies.
|
|
|
|
| 53 |
*Example of correction:* Lopez (2018) and Chen (2012) found that cultural context strongly influences translation strategies.
|
| 54 |
|
|
|
|
| 55 |
*Example of mistake:* This topic has been widely researched Baker (2006).
|
| 56 |
|
| 57 |
*Example of correction:* This topic has been widely researched (Baker 2006).
|
|
@@ -61,9 +63,12 @@ The model can perform automatic corrections of various referencing errors, inclu
|
|
| 61 |
### 2. Incorrect Citation for Two Authors
|
| 62 |
|
| 63 |
*Example of mistake:* The concept of functional equivalence was analyzed by Baker & Green (2007).
|
|
|
|
| 64 |
*Example of correction:* The concept of functional equivalence was analyzed by Baker and Green (2007).
|
| 65 |
|
|
|
|
| 66 |
*Example of mistake:* Previous research (Müller, Schmidt 2001) highlights challenges in literary translation.
|
|
|
|
| 67 |
*Example of correction:* Previous research (Müller & Schmidt 2001) highlights challenges in literary translation.
|
| 68 |
|
| 69 |
---
|
|
|
|
| 50 |
### 1. Incorrect Citation Type (Parenthetical vs. Narrative)
|
| 51 |
|
| 52 |
*Example of mistake:* (Lopez 2018; Chen 2012) found that cultural context strongly influences translation strategies.
|
| 53 |
+
|
| 54 |
*Example of correction:* Lopez (2018) and Chen (2012) found that cultural context strongly influences translation strategies.
|
| 55 |
|
| 56 |
+
|
| 57 |
*Example of mistake:* This topic has been widely researched Baker (2006).
|
| 58 |
|
| 59 |
*Example of correction:* This topic has been widely researched (Baker 2006).
|
|
|
|
| 63 |
### 2. Incorrect Citation for Two Authors
|
| 64 |
|
| 65 |
*Example of mistake:* The concept of functional equivalence was analyzed by Baker & Green (2007).
|
| 66 |
+
|
| 67 |
*Example of correction:* The concept of functional equivalence was analyzed by Baker and Green (2007).
|
| 68 |
|
| 69 |
+
|
| 70 |
*Example of mistake:* Previous research (Müller, Schmidt 2001) highlights challenges in literary translation.
|
| 71 |
+
|
| 72 |
*Example of correction:* Previous research (Müller & Schmidt 2001) highlights challenges in literary translation.
|
| 73 |
|
| 74 |
---
|