Spaces:
Running on Zero
Running on Zero
Commit ·
2f18d90
1
Parent(s): f944367
Link back to the mlotsawa-ground-base paper and training code
Browse filesCross-reference the "Optimizing T5 for Lightweight Tibetan-English
Translation" preprint and the optimizing-t5-tibetan-english-mt repo
that trained the local CPU fallback model. Also document the new
origin (GitHub) / space (HF Space) dual-remote setup.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
CLAUDE.md
CHANGED
|
@@ -52,6 +52,9 @@ engine/
|
|
| 52 |
`AutoModelForSeq2SeqLM.generate()` directly (see `engine/local_backend.py`). This is a plain finetuned
|
| 53 |
T5 seq2seq model — it does **not** read `translation_prompt.txt` at all. First call downloads the
|
| 54 |
model (~a few hundred MB) and is slow on CPU; it stays cached in memory for the life of the process.
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
**Why not `pipeline("translation", ...)`:** that's the model card's documented usage, but the
|
| 57 |
`"translation"` pipeline task was removed in `transformers>=5` (raises `Unknown task translation`).
|
|
@@ -109,3 +112,10 @@ in this working copy; on a fresh clone, install it with either
|
|
| 109 |
deliberate scope expansion, not a bug to fix.
|
| 110 |
- This repo has no relationship to `Garchen`'s git history — it's fine to `git init` here and commit
|
| 111 |
independently.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
`AutoModelForSeq2SeqLM.generate()` directly (see `engine/local_backend.py`). This is a plain finetuned
|
| 53 |
T5 seq2seq model — it does **not** read `translation_prompt.txt` at all. First call downloads the
|
| 54 |
model (~a few hundred MB) and is slow on CPU; it stays cached in memory for the life of the process.
|
| 55 |
+
This model was introduced in ["Optimizing T5 for Lightweight Tibetan-English Translation"](https://doi.org/10.21203/rs.3.rs-7409829/v1)
|
| 56 |
+
(Moore & Lauren, 2025); its training/eval code is at
|
| 57 |
+
[optimizing-t5-tibetan-english-mt](https://github.com/billingsmoore/optimizing-t5-tibetan-english-mt).
|
| 58 |
|
| 59 |
**Why not `pipeline("translation", ...)`:** that's the model card's documented usage, but the
|
| 60 |
`"translation"` pipeline task was removed in `transformers>=5` (raises `Unknown task translation`).
|
|
|
|
| 112 |
deliberate scope expansion, not a bug to fix.
|
| 113 |
- This repo has no relationship to `Garchen`'s git history — it's fine to `git init` here and commit
|
| 114 |
independently.
|
| 115 |
+
|
| 116 |
+
## Remotes
|
| 117 |
+
|
| 118 |
+
Two remotes, same dual-remote convention as `Garchen`: `origin` = GitHub
|
| 119 |
+
(https://github.com/billingsmoore/SimpleTranslationUI, source of truth) and `space` = the deployed
|
| 120 |
+
Hugging Face Space (https://huggingface.co/spaces/billingsmoore/SimpleTranslationUI). Push to `origin`
|
| 121 |
+
for normal commits; push to `space` (`git push space main:main`) to actually redeploy the Space.
|
README.md
CHANGED
|
@@ -32,6 +32,11 @@ projects — just upload, translate, edit, download.
|
|
| 32 |
it's a plain seq2seq translation model, not an instruction-following LLM.
|
| 33 |
First use downloads the model (a few hundred MB) and is slow; keep it running.
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
## Setup
|
| 36 |
|
| 37 |
```bash
|
|
|
|
| 32 |
it's a plain seq2seq translation model, not an instruction-following LLM.
|
| 33 |
First use downloads the model (a few hundred MB) and is slow; keep it running.
|
| 34 |
|
| 35 |
+
This model was introduced in the paper
|
| 36 |
+
[*Optimizing T5 for Lightweight Tibetan-English Translation*](https://doi.org/10.21203/rs.3.rs-7409829/v1)
|
| 37 |
+
(Moore & Lauren, 2025); its training/evaluation code lives in
|
| 38 |
+
[optimizing-t5-tibetan-english-mt](https://github.com/billingsmoore/optimizing-t5-tibetan-english-mt).
|
| 39 |
+
|
| 40 |
## Setup
|
| 41 |
|
| 42 |
```bash
|