Download section: new repo id + config.json-first flow
Browse files
README.md
CHANGED
|
@@ -61,8 +61,20 @@ The architecture and training loop build on the [Relational Transformer](https:/
|
|
| 61 |
|
| 62 |
## Download
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
```bash
|
| 65 |
-
|
| 66 |
--repo-type model \
|
| 67 |
--local-dir ~/scratch/rt_hf_ckpts
|
| 68 |
```
|
|
|
|
| 61 |
|
| 62 |
## Download
|
| 63 |
|
| 64 |
+
Single checkpoint (Python) — fetch `config.json` alongside the weights; it carries
|
| 65 |
+
the model architecture and is what the Hub uses to count downloads:
|
| 66 |
+
|
| 67 |
+
```python
|
| 68 |
+
from huggingface_hub import hf_hub_download
|
| 69 |
+
|
| 70 |
+
config = hf_hub_download("stanford-star/rt-plurel", "config.json")
|
| 71 |
+
ckpt = hf_hub_download("stanford-star/rt-plurel", "synthetic-pretrain_rdb_1024_size_4b.pt")
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
Full repository (CLI):
|
| 75 |
+
|
| 76 |
```bash
|
| 77 |
+
hf download stanford-star/rt-plurel \
|
| 78 |
--repo-type model \
|
| 79 |
--local-dir ~/scratch/rt_hf_ckpts
|
| 80 |
```
|