Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -98,7 +98,8 @@ from huggingface_hub import hf_hub_download
|
|
| 98 |
weights = Path(hf_hub_download("precisit/one-pass-sv-forms", "sv0-forms.safetensors"))
|
| 99 |
hf_hub_download("precisit/one-pass-sv-forms", "sv0-forms.json", local_dir=weights.parent)
|
| 100 |
# then either use the Core ML packages (no Python runtime needed) or the PyTorch code in
|
| 101 |
-
# precisit/
|
|
|
|
| 102 |
```
|
| 103 |
|
| 104 |
The context string and options must be built exactly as in training (byte ids = UTF-8 byte + 1,
|
|
@@ -106,6 +107,10 @@ zero-padded; `UPPGIFT fyll i formuläret från dokumentet och skicka sedan in` /
|
|
| 106 |
`ELEMENT <role> "<label>" value="…"`). A mismatch there is the most likely cause of poor output —
|
| 107 |
the recipe and the generator are in the toolkit repository.
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
## Licence and attribution
|
| 110 |
|
| 111 |
MIT. The architecture, training loop and evaluation metrics come from Cua's MIT-licensed
|
|
|
|
| 98 |
weights = Path(hf_hub_download("precisit/one-pass-sv-forms", "sv0-forms.safetensors"))
|
| 99 |
hf_hub_download("precisit/one-pass-sv-forms", "sv0-forms.json", local_dir=weights.parent)
|
| 100 |
# then either use the Core ML packages (no Python runtime needed) or the PyTorch code in
|
| 101 |
+
# the toolkit repository: https://github.com/precisit/one-pass-specialists — the Core ML
|
| 102 |
+
# packages below live in *this* repository and need no PyTorch.
|
| 103 |
```
|
| 104 |
|
| 105 |
The context string and options must be built exactly as in training (byte ids = UTF-8 byte + 1,
|
|
|
|
| 107 |
`ELEMENT <role> "<label>" value="…"`). A mismatch there is the most likely cause of poor output —
|
| 108 |
the recipe and the generator are in the toolkit repository.
|
| 109 |
|
| 110 |
+
## Building your own
|
| 111 |
+
|
| 112 |
+
The toolkit that produced this checkpoint is public: [`precisit/one-pass-specialists`](https://github.com/precisit/one-pass-specialists). The interesting work is the **catalogue** — the concepts, the labels they appear under, and their value formats — because everything above the trainer is language- and vertical-neutral. The recipe, the corpus manifest and both result files for this checkpoint are in that repository under `examples/sv-forms/`.
|
| 113 |
+
|
| 114 |
## Licence and attribution
|
| 115 |
|
| 116 |
MIT. The architecture, training loop and evaluation metrics come from Cua's MIT-licensed
|