Downloads · 30 days
0
ylm182/ec2eat-laya-serving
ec2eat-laya-serving is a text classification model from ylm182. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This repository is a custom Hugging Face Inference Toolkit handler, not a standard Transformers classification checkpoint. It downloads only convaiinnovations/laya-multilingual revision e4e9ddf21a7b1903b7acffd8814ad43…
Downloads · 30 days
0
Access
Public
Updated Sep 25, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py7.7 KB · 54%
From the Hugging Face model README
This repository is a custom Hugging Face Inference Toolkit handler, not a standard
Transformers classification checkpoint. It downloads only
convaiinnovations/laya-multilingual revision
e4e9ddf21a7b1903b7acffd8814ad4307bf63a67 at startup and runs Laya 0.3.20 on CPU.
Upstream weights are Apache-2.0; they are not redistributed in this wrapper.
Candidate serving recipe. Five local validation tests passed. Real CPU inference passed English and Traditional Chinese two-candidate examples; both ranked the matching lunch first. These examples do not establish general ranking quality. Local unit tests are separate from real local model tests and from HF deployment validation. The application still exports a null installed recipe and falls back deterministically. Uploading these files does not enable it.
ylm182/ec2eat-laya-serving.
Upload handler.py, requirements.txt, and this README.md at its root.
The browser upload uses your signed-in account; do not widen the production
inference token to write access. Do not upload tokens, caches or virtual environments.handler.py (the legacy Default
engine detects it). Check initialization logs to confirm custom handler discovery.
If Default maps to another engine, stop and select Inference Toolkit or use its
documented container; do not substitute vLLM/TGI or a stock classification pipeline.smoke.py to the endpoint root /, with Bearer HF authentication.
Verify an anonymous request fails. Save sanitized requests/responses plus metadata.VerifiedLayaRecipe, with fixture digest,
handler/runtime version and checkpoint revision. Run the existing live contract
checklist in tests/fixtures/laya/README.md before enabling integration.POST the JSON envelope {"inputs":{"state":"...","candidates":[{"id":"a","description":"..."}]}}.
State is minimized preference/context text, never raw Calendar data. Production
encoding must explain dimension polarity, preserve explicit/neutral/unknown states,
keep priors weak, and respect the existing Places model-input flag.
1–10 unique candidate IDs, 16,000-byte request maximum, at most 700 state tokens including candidate descriptions. Over-limit requests fail instead of truncating. One fixed choice question returns scores for every candidate. Letter aliases keep IDs out of the question head; the response restores original IDs. Raw probabilities are normalized only to correct upstream four-decimal rounding. They are ranking weights, not calibrated enjoyment probabilities; confidence is null.
The app's 2-second timeout remains unchanged. Slow/cold model responses must fall back. Local Apple CPU timing does not establish AWS latency. Scale-up, warm-up, scheduler authorization, idle scaling and Linux dependency compatibility require real deployment tests.
Use Python 3.12 in an isolated virtual environment, install requirements.txt, then:
python -m unittest discover -s tests -v
python smoke.py
The smoke test downloads real public weights and creates local-smoke.json using
fictional data only. local-validation-requirements.txt records the locally resolved
packages; it is not a claim that HF's base image has been tested.
Sources checked 2026-09-25:
6039e802fa5effb8dd492061cd7ad39a43087beadc4a4fa4a649614e77eb83d4