Commit
·
03d3c70
1
Parent(s):
9b53c2b
Update README.md
Browse files
README.md
CHANGED
|
@@ -97,9 +97,13 @@ For further recommendations on the use of the model, please see the associated p
|
|
| 97 |
|
| 98 |
## How to Get Started with the Model
|
| 99 |
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
## Training Details
|
| 105 |
|
|
|
|
| 97 |
|
| 98 |
## How to Get Started with the Model
|
| 99 |
|
| 100 |
+
The fastest way to start with the model is using the code below:
|
| 101 |
+
```py
|
| 102 |
+
from transformers import pipeline
|
| 103 |
+
pipe = pipeline(model="dkalpakchi/SweCTRL-Mini")
|
| 104 |
+
print(pipe(":nyheter:", max_length=256, repetition_penalty=1.1, top_p=0.9))
|
| 105 |
+
```
|
| 106 |
+
For more advanced uses and other code examples, please see the associated GitHub repository (https://github.com/dkalpakchi/SweCTRL-Mini).
|
| 107 |
|
| 108 |
## Training Details
|
| 109 |
|