Instructions to use jjae/hashtag with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jjae/hashtag with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("jjae/hashtag") model = AutoModelForSeq2SeqLM.from_pretrained("jjae/hashtag", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -64,7 +64,7 @@ The following hyperparameters were used during training:
|
|
| 64 |
Use the code below to get started with the model.
|
| 65 |
You can adjust hyperparameters to fit on your data.
|
| 66 |
|
| 67 |
-
```
|
| 68 |
from transformers import PreTrainedTokenizerFast, BartForConditionalGeneration
|
| 69 |
tokenizer = PreTrainedTokenizerFast.from_pretrained("jjae/kobart-hashtag")
|
| 70 |
model = BartForConditionalGeneration.from_pretrained("jjae/kobart-hashtag")
|
|
|
|
| 64 |
Use the code below to get started with the model.
|
| 65 |
You can adjust hyperparameters to fit on your data.
|
| 66 |
|
| 67 |
+
```python
|
| 68 |
from transformers import PreTrainedTokenizerFast, BartForConditionalGeneration
|
| 69 |
tokenizer = PreTrainedTokenizerFast.from_pretrained("jjae/kobart-hashtag")
|
| 70 |
model = BartForConditionalGeneration.from_pretrained("jjae/kobart-hashtag")
|