Instructions to use supermy/c2m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use supermy/c2m with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("supermy/c2m") model = AutoModelForSeq2SeqLM.from_pretrained("supermy/c2m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,6 +4,8 @@ datasets: c2m
|
|
| 4 |
inference:
|
| 5 |
parameters:
|
| 6 |
max_length: 52
|
|
|
|
|
|
|
| 7 |
widget:
|
| 8 |
- text: "往者不可谏,来者犹可追。"
|
| 9 |
example_title: "往来"
|
|
|
|
| 4 |
inference:
|
| 5 |
parameters:
|
| 6 |
max_length: 52
|
| 7 |
+
num_return_sequences: 1
|
| 8 |
+
do_sample: True
|
| 9 |
widget:
|
| 10 |
- text: "往者不可谏,来者犹可追。"
|
| 11 |
example_title: "往来"
|