Instructions to use roberthsu2003/for_multiple_choice with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use roberthsu2003/for_multiple_choice with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForMultipleChoice tokenizer = AutoTokenizer.from_pretrained("roberthsu2003/for_multiple_choice") model = AutoModelForMultipleChoice.from_pretrained("roberthsu2003/for_multiple_choice") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -27,6 +27,7 @@ It achieves the following results on the evaluation set:
|
|
| 27 |
|
| 28 |
## 模型的使用
|
| 29 |
|
|
|
|
| 30 |
from typing import Any
|
| 31 |
import torch
|
| 32 |
|
|
@@ -61,7 +62,7 @@ if __name__ == "__main__":
|
|
| 61 |
pipe = MultipleChoicePipeline(model, tokenizer)
|
| 62 |
result1 = pipe("國堂在台北上班","國堂在哪裏上班?",['台北','台中'])
|
| 63 |
print(result1)
|
| 64 |
-
|
| 65 |
|
| 66 |
## Intended uses & limitations
|
| 67 |
|
|
|
|
| 27 |
|
| 28 |
## 模型的使用
|
| 29 |
|
| 30 |
+
```python
|
| 31 |
from typing import Any
|
| 32 |
import torch
|
| 33 |
|
|
|
|
| 62 |
pipe = MultipleChoicePipeline(model, tokenizer)
|
| 63 |
result1 = pipe("國堂在台北上班","國堂在哪裏上班?",['台北','台中'])
|
| 64 |
print(result1)
|
| 65 |
+
```
|
| 66 |
|
| 67 |
## Intended uses & limitations
|
| 68 |
|