Transformers
PyTorch
Safetensors
Chinese
t5
text2text-generation
prompt
Text2Text-Generation
text-generation-inference
Instructions to use mxmax/Chinese_Chat_T5_Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mxmax/Chinese_Chat_T5_Base with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("mxmax/Chinese_Chat_T5_Base") model = AutoModelForSeq2SeqLM.from_pretrained("mxmax/Chinese_Chat_T5_Base") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -69,7 +69,7 @@ def answer_fn(text, top_k=50):
|
|
| 69 |
return postprocess(result[0])
|
| 70 |
while True:
|
| 71 |
text = input('请输入问题:')
|
| 72 |
-
result=answer_fn(text,
|
| 73 |
print("模型生成:",result)
|
| 74 |
print('*'*100)
|
| 75 |
```
|
|
|
|
| 69 |
return postprocess(result[0])
|
| 70 |
while True:
|
| 71 |
text = input('请输入问题:')
|
| 72 |
+
result=answer_fn(text, top_k=50)
|
| 73 |
print("模型生成:",result)
|
| 74 |
print('*'*100)
|
| 75 |
```
|