mbochniak01 Claude Sonnet 4.6 commited on
Commit ·
4e97a7e
1
Parent(s): ffbf46f
Fix Dockerfile: replace HHEM pre-warm with nli-deberta-v3-small
Browse filesHHEM checkpoint is broken (zero embeddings) — replaced in grader.py last
session. Dockerfile still tried to download it, failing the build.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Dockerfile +2 -5
Dockerfile
CHANGED
|
@@ -12,12 +12,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 12 |
|
| 13 |
# Pre-download models so first request isn't slow on HF Spaces
|
| 14 |
RUN python -c "\
|
| 15 |
-
from sentence_transformers import SentenceTransformer; \
|
| 16 |
-
from transformers import T5Tokenizer, pipeline; \
|
| 17 |
SentenceTransformer('all-MiniLM-L6-v2'); \
|
| 18 |
-
|
| 19 |
-
pipe = pipeline('text-classification', model='vectara/hallucination_evaluation_model', tokenizer=tok, trust_remote_code=True); \
|
| 20 |
-
pipe(['test document test response'])"
|
| 21 |
|
| 22 |
COPY knowledge/ ./knowledge/
|
| 23 |
COPY backend/ ./backend/
|
|
|
|
| 12 |
|
| 13 |
# Pre-download models so first request isn't slow on HF Spaces
|
| 14 |
RUN python -c "\
|
| 15 |
+
from sentence_transformers import SentenceTransformer, CrossEncoder; \
|
|
|
|
| 16 |
SentenceTransformer('all-MiniLM-L6-v2'); \
|
| 17 |
+
CrossEncoder('cross-encoder/nli-deberta-v3-small')"
|
|
|
|
|
|
|
| 18 |
|
| 19 |
COPY knowledge/ ./knowledge/
|
| 20 |
COPY backend/ ./backend/
|