Instructions to use ClueAI/PromptCLUE-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ClueAI/PromptCLUE-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ClueAI/PromptCLUE-base") model = AutoModelForSeq2SeqLM.from_pretrained("ClueAI/PromptCLUE-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,8 +38,6 @@ def answer(text, sample=False, top_p=0.6):
|
|
| 38 |
return postprocess(out_text[0])
|
| 39 |
```
|
| 40 |
|
| 41 |
-
使用示例
|
| 42 |
-
|
| 43 |
### 示例输入
|
| 44 |
#### 新闻分类(classify)
|
| 45 |
```bash
|
|
|
|
| 38 |
return postprocess(out_text[0])
|
| 39 |
```
|
| 40 |
|
|
|
|
|
|
|
| 41 |
### 示例输入
|
| 42 |
#### 新闻分类(classify)
|
| 43 |
```bash
|