Pin the community ONNX mirrors to their own commit revisions
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Tranquilo
- Stack tecnológico
- typescript
Línea de trabajo
Empieza en code/frontend/src/lib/staticClient/arch.ts e inspecciona la salida de meta.json del exportador para cada modelo; después, sigue cómo transformersRuntime.ts llama a pipeline(...). Comprueba la respuesta de la API de modelos de Hugging Face para cada mirror de ONNX_REPOS y verifica que la carga resultante en el navegador use el SHA propio del mirror. Se considera terminado cuando la generación fijada funciona en un navegador, las revisiones obsoletas fallan con un error en lenguaje sencillo y la lista de modelos seleccionada tiene una única fuente de verdad.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What
In the static build, in-browser generation resolves the community ONNX mirror (e.g. onnx-community/gpt2-ONNX) at main. Everything else the site fetches is pinned: the tokenizer and the safetensors weight windows both use the model repo's recorded commit SHA.
This is the one path where the bytes executed in a visitor's browser can change without a code change here.
Why it isn't already fixed
The obvious fix — pass the recorded revision through to pipeline(...) — is wrong, and was measured to be wrong:
Could not locate file: "https://huggingface.co/onnx-community/gpt2-ONNX/resolve/607a30d783dfa663caf39e06633721c8d4cfcd7e/tokenizer.json"
607a30d7… is gpt2's commit. The ONNX mirror is a different repository with its own commit history, so the model repo's SHA 404s against it. Attempting this broke generation entirely until it was reverted.
What a real fix looks like
Record each mirror's own revision:
- Resolve the mirror's head SHA at export time (
GET https://huggingface.co/api/models/<mirror>→sha), for the mirrors listed inONNX_REPOS(code/frontend/src/lib/staticClient/arch.ts). - Write it into the per-model
meta.jsonthe exporter emits (e.g.onnx_repo+onnx_revision), so the mapping lives with the data rather than hard-coded in the frontend. - Pass that SHA to
pipeline(..., { revision })intransformersRuntime.ts.
Step 2 is the substantive one: it also removes the hard-coded ONNX_REPOS map from the frontend, which is currently a second place the curated model list has to be kept in sync.
Acceptance
- Generation resolves a pinned SHA, verified in a browser (not just in types).
- A stale/incorrect SHA fails loudly at load with a plain-language error, not a hang.
- The curated model list has exactly one source of truth.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ContextLab/llm-geometry
-
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 70/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
-
getting startedAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 18/100
ContextLab/llm-geometry#1 · 9 comentarios ·
Todos los issues de ContextLab/llm-geometry
Issues similares
-
Plugin: sheet music can't be scrolled by hand before playbackPosiblemente ocupada @snakajima la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
receptron/jinglescript#51 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 9 días
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
openclaw/openclaw#186424 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
chore(worker): five module header comments describe the code from before later issues changed itAbiertoarea:dev U2-later
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
bentleypark/aiwatch#1824 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Pal-AI-Lab/Coopanion#469 ·
Los mantenedores suelen responder en 1 día