Update README.md
Browse files
README.md
CHANGED
|
@@ -14,11 +14,10 @@ It was trained on both T5 (text) and the [AnimaTextToImagePipeline](https://hugg
|
|
| 14 |
|
| 15 |

|
| 16 |
|
| 17 |
-
*The project is a work in progress, see the image above.*
|
| 18 |
-
|
| 19 |
## Inference
|
| 20 |
|
| 21 |
```python
|
|
|
|
| 22 |
bert = CosmosBert.from_pretrained('nightknocker/cosmos-bert')
|
| 23 |
tokenizer = AutoTokenizer.from_pretrained('nightknocker/cosmos-bert')
|
| 24 |
inputs = tokenizer(text, return_tensors='pt').to('cuda')
|
|
|
|
| 14 |
|
| 15 |

|
| 16 |
|
|
|
|
|
|
|
| 17 |
## Inference
|
| 18 |
|
| 19 |
```python
|
| 20 |
+
# Use the default ModernBertConfig.
|
| 21 |
bert = CosmosBert.from_pretrained('nightknocker/cosmos-bert')
|
| 22 |
tokenizer = AutoTokenizer.from_pretrained('nightknocker/cosmos-bert')
|
| 23 |
inputs = tokenizer(text, return_tensors='pt').to('cuda')
|