Instructions to use geraldaton20/hd-laya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use geraldaton20/hd-laya with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
hd-laya
hd-laya removes laya's ~20-option choice ceiling with a hyperdimensional (HDC/VSA) option index, keeping laya's System-1 engine unmodified.
Download
Repo: https://huggingface.co/datas/geraldaton20/hd-laya
| File | Size | Description |
|---|---|---|
hd_laya_trained.pt |
106 MB | Trained head (Kaggle v4, K=20: +3.1pt delta) |
hd_laya_trained_calibrated.pt |
106 MB | Calibrated trained head (temp=1.427) |
head.onnx |
0.7 MB + 100 MB data | ONNX head export |
results_snips_atis.json |
2 KB | SNIPS + ATIS benchmark results |
comparison_chart.png |
67 KB | Benchmark chart |
The base encoder is convaiinnovations/laya on HuggingFace (built by the laya
project, used by this one).
Production: Base Laya + SimHash HDC (recommended)
from laya.agent import Agent
from hd_laya.agent import HDLoyaAgent
agent = HDLoyaAgent(Agent("convaiinnovations/laya", device="cuda"),
max_options=20, z_bar=0.0)
Trained head (optional)
Measured, worse than base laya on CLINC150 β use only if you want it.
from huggingface_hub import hf_hub_download
from laya.agent import Agent
from hd_laya.agent import HDLoyaAgent
from hd_laya.laya_agent import TrainedLayaAgent
ckpt = hf_hub_download("geraldaton20/hd-laya", "hd_laya_trained_calibrated.pt")
trained = TrainedLayaAgent.from_checkpoint(ckpt, agent=Agent("convaiinnovations/laya", device="cuda"))
agent = HDLoyaAgent(trained, max_options=20, z_bar=0.0)
Architecture
State β HDC Index (SimHash, narrows Kβ20) β Base Laya β choice
Real-World Benchmarks
| dataset | intents | base laya | hd-laya | delta | index recall@20 |
|---|---|---|---|---|---|
| BANKING77 | 77 | 4.0% | 24.0% | +20.0% | ~1.0 |
| CLINC150 | 151 | 20.0% | 52.0% | +32.0% | 0.53 |
| SNIPS | 10 | 63.5% | 63.5% | 0.0 | N/A |
| ATIS | 20 | 84.5% | 84.5% | 0.0 | N/A |
CLINC150 Experiments
Trained encoders were worse than SimHash β see model card discussions.
License
Apache-2.0 (derived from laya; attribution to NandhaKishorM/laya).
Links
- GitHub: https://github.com/sensesVoid/hd-laya
- Upstream: https://github.com/NandhaKishorM/laya
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support
Model tree for geraldaton20/hd-laya
Base model
convaiinnovations/laya