Instructions to use nativ-community/laya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nativ-community/laya with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download nativ-community/laya --local-dir laya
- Laya
How to use nativ-community/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
- Local Apps Settings
- LM Studio
- Atomic Chat
Laya for MLX-VLM
MLX-formatted weights for the original English/root checkpoint from
convaiinnovations/laya,
source revision 55cf4c4ebb4ebe31b2550e8bdf3bd21b99753851.
This repository contains that variant only, not the multilingual or typed-decisions variants.
The weights retain their original precision and are not quantized. Weight names
and packed QKV projections are converted to MLX-VLM's native layout. Encoder,
decision-head, and calibration settings are included in root config.json,
with tokenizer files at the root for standard loading.
Requires MLX-VLM with Laya support from PR #2397. Older releases without that support cannot load this checkpoint.
from mlx_vlm import load, predict
model, processor = load("nativ-community/laya")
result = predict(model, processor, "Please refund my duplicate charge.", {
"department": {
"type": "choice",
"instructions": "Which team should handle this ticket?",
"criteria": ["billing", "technical", "sales"],
},
"refund": {
"type": "bool",
"instructions": "Does this request ask for a refund?",
},
})
print(result["answers"])
Supported question types are choice, score, and bool (noul is a Boolean
alias). Scores use an ordered list of criteria. This is a decision model; it
does not generate text.
Conversion verification
Strict loading succeeded before and after conversion. All 214 loaded tensors matched exactly in shape, dtype, and value. Nine answers across three short inputs and choice, Boolean, and score questions matched exactly, including probabilities, metadata, and token usage. This checks conversion preservation, not broad task accuracy or numerical identity with the upstream PyTorch runtime.
The original model is published under Apache-2.0. See the upstream model card for training details and intended use.
- Downloads last month
- 82
Quantized
Model tree for nativ-community/laya
Base model
convaiinnovations/laya