Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -89,10 +89,10 @@ Opens a web UI at http://127.0.0.1:7860 where you can test and finetune on your
|
|
| 89 |
## Usage (Python)
|
| 90 |
|
| 91 |
```python
|
| 92 |
-
from needle import load_checkpoint, generate,
|
| 93 |
|
| 94 |
params, config = load_checkpoint("checkpoints/needle.pkl")
|
| 95 |
-
model =
|
| 96 |
tokenizer = get_tokenizer()
|
| 97 |
|
| 98 |
result = generate(
|
|
|
|
| 89 |
## Usage (Python)
|
| 90 |
|
| 91 |
```python
|
| 92 |
+
from needle import load_checkpoint, generate, SimpleAttentionNetwork, get_tokenizer
|
| 93 |
|
| 94 |
params, config = load_checkpoint("checkpoints/needle.pkl")
|
| 95 |
+
model = SimpleAttentionNetwork(config)
|
| 96 |
tokenizer = get_tokenizer()
|
| 97 |
|
| 98 |
result = generate(
|