Transformers
PyTorch
English
Chinese
bart
text2text-generation
GENIUS
conditional text generation
sketch-based text generation
data augmentation
Instructions to use beyond/genius-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use beyond/genius-large with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("beyond/genius-large") model = AutoModelForSeq2SeqLM.from_pretrained("beyond/genius-large") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -52,4 +52,4 @@ sketch = "your_sketch"
|
|
| 52 |
generated_text = genius(sketch, num_beams=3, do_sample=True, max_length=200)[0]['generated_text']
|
| 53 |
print(generated_text)
|
| 54 |
```
|
| 55 |
-
(it seems there are something wrong with Huggingface's markdown parser. I'm not able to type "<mask>" in the code block. Therefore, place replace the `sketch = "your_sketch"` with your own code, using `<mask>` to join some key words/phrases/sents)
|
|
|
|
| 52 |
generated_text = genius(sketch, num_beams=3, do_sample=True, max_length=200)[0]['generated_text']
|
| 53 |
print(generated_text)
|
| 54 |
```
|
| 55 |
+
(it seems there are something wrong with Huggingface's markdown parser. I'm not able to type "\<mask\>" in the code block. Therefore, place replace the `sketch = "your_sketch"` with your own code, using `<mask>` to join some key words/phrases/sents)
|