Instructions to use Ashishkr/Dialog_clarification_gpt2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ashishkr/Dialog_clarification_gpt2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Ashishkr/Dialog_clarification_gpt2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -29,8 +29,8 @@ A user is asking an ambiguous question (where ambiguous question is a question t
|
|
| 29 |
|
| 30 |
```python
|
| 31 |
from transformers import AutoTokenizer, AutoModelWithLMHead
|
| 32 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 33 |
-
model = AutoModelWithLMHead.from_pretrained("
|
| 34 |
|
| 35 |
input_query="Serve your models directly from Hugging Face infrastructure and run large scale NLP models in milliseconds with just a few lines of code"
|
| 36 |
|
|
|
|
| 29 |
|
| 30 |
```python
|
| 31 |
from transformers import AutoTokenizer, AutoModelWithLMHead
|
| 32 |
+
tokenizer = AutoTokenizer.from_pretrained("Ashishkr/Dialog_clarification_gpt2")
|
| 33 |
+
model = AutoModelWithLMHead.from_pretrained("Ashishkr/Dialog_clarification_gpt2")
|
| 34 |
|
| 35 |
input_query="Serve your models directly from Hugging Face infrastructure and run large scale NLP models in milliseconds with just a few lines of code"
|
| 36 |
|