Text Classification
Transformers
Safetensors
Laya
system-one
calibrated-decisions
rlcd
classification
routing
scoring
guardrails
moderation
reinforcement-learning
commercial-use
Instructions to use convaiinnovations/laya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use convaiinnovations/laya with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="convaiinnovations/laya")# pip install -U transformers accelerate # Load model directly from transformers import LayaTypedDecisions model = LayaTypedDecisions.from_pretrained("convaiinnovations/laya", device_map="auto") - Laya
How to use convaiinnovations/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
- Inference
- Notebooks
- Google Colab
- Kaggle
Card: licence note updated
Browse files
README.md
CHANGED
|
@@ -30,16 +30,15 @@ tags: [laya, system-one, calibrated-decisions, rlcd, classification, routing, sc
|
|
| 30 |
|
| 31 |
<p align="center"><img src="https://raw.githubusercontent.com/NandhaKishorM/vegaml/main/assets/vega-valleys.svg" width="900" alt="How it decides: a frozen LLM reads the message once, every answer is a valley, and a particle rolls and settles in one. Where it settles is the answer, with its probability, conformal set, abstain and unbound flags." /></p>
|
| 32 |
|
| 33 |
-
**New in 0.5: laya reads images, audio and video, takes 73k tokens, says when it should not decide
|
| 34 |
|
| 35 |
- **Text, images, audio and video.** `agent.predict(...)` with `image=`, `audio=` or `video=` gives the same typed answers as for text.
|
| 36 |
- **73,728 tokens of context.** Whole contracts, threads and logs in one read.
|
| 37 |
- **Abstain and unbound**, explained below.
|
| 38 |
- **Physics, not text generation.** Each candidate answer is a valley; the input is a particle that rolls and settles in one. Deterministic, constant cost, nothing generated.
|
| 39 |
- **Any LLM as the reader.** One small decision engine on top of a frozen reader, from 0.8B to 27B.
|
| 40 |
-
- **Continuous learning** (`pip install vegaml-learn`, noncommercial licence, see the note below). `from laya import Learner`: it answers from day one and learns from every answer your team confirms, on your own machine, in seconds on a CPU with no fine-tuning.
|
| 41 |
|
| 42 |
-
> **Licence.** These weights and the `laya` package are Apache 2.0, free for any use. Continuous learning
|
| 43 |
|
| 44 |
### How abstain and unbound work
|
| 45 |
|
|
@@ -52,11 +51,11 @@ The input is placed as a particle in a small decision space where every candidat
|
|
| 52 |
|
| 53 |
### Benchmarks at a glance
|
| 54 |
|
| 55 |
-
**Continuous learning.** 14 decision templates (31 questions), each starting from about 600 generated examples, then learning from confirmed answers; scored on 60 held-out rows per template.
|
| 56 |
|
| 57 |
| | day one | after 40 confirmed answers | after 120 |
|
| 58 |
|---|---|---|---|
|
| 59 |
-
| laya
|
| 60 |
| Jev 1.14, confirmed answers written into its criteria | **89.5%** | 91.5% | 92.6% |
|
| 61 |
|
| 62 |
Jev leads on day one (23 of 31 questions); they are level at 40; laya leads at 120 (12 wins, 7 losses, 12 ties). Jev cannot be taught, only prompted, and is a hosted API (364 ms a request from India).
|
|
|
|
| 30 |
|
| 31 |
<p align="center"><img src="https://raw.githubusercontent.com/NandhaKishorM/vegaml/main/assets/vega-valleys.svg" width="900" alt="How it decides: a frozen LLM reads the message once, every answer is a valley, and a particle rolls and settles in one. Where it settles is the answer, with its probability, conformal set, abstain and unbound flags." /></p>
|
| 32 |
|
| 33 |
+
**New in 0.5: laya reads images, audio and video, takes 73k tokens, and says when it should not decide.** laya is open source under Apache 2.0 (`pip install -U laya`).
|
| 34 |
|
| 35 |
- **Text, images, audio and video.** `agent.predict(...)` with `image=`, `audio=` or `video=` gives the same typed answers as for text.
|
| 36 |
- **73,728 tokens of context.** Whole contracts, threads and logs in one read.
|
| 37 |
- **Abstain and unbound**, explained below.
|
| 38 |
- **Physics, not text generation.** Each candidate answer is a valley; the input is a particle that rolls and settles in one. Deterministic, constant cost, nothing generated.
|
| 39 |
- **Any LLM as the reader.** One small decision engine on top of a frozen reader, from 0.8B to 27B.
|
|
|
|
| 40 |
|
| 41 |
+
> **Licence.** These weights and the `laya` package are Apache 2.0, free for any use. Continuous learning is a commercial product from Embedding Space and is not part of this package: [embedding.in/licence](https://embedding.in/licence), or write to nandakishor@embedding.in.
|
| 42 |
|
| 43 |
### How abstain and unbound work
|
| 44 |
|
|
|
|
| 51 |
|
| 52 |
### Benchmarks at a glance
|
| 53 |
|
| 54 |
+
**Continuous learning (commercial, not in this package).** 14 decision templates (31 questions), each starting from about 600 generated examples, then learning from confirmed answers; scored on 60 held-out rows per template.
|
| 55 |
|
| 56 |
| | day one | after 40 confirmed answers | after 120 |
|
| 57 |
|---|---|---|---|
|
| 58 |
+
| laya with continuous learning | 84.7% | 91.6% | **96.0%** |
|
| 59 |
| Jev 1.14, confirmed answers written into its criteria | **89.5%** | 91.5% | 92.6% |
|
| 60 |
|
| 61 |
Jev leads on day one (23 of 31 questions); they are level at 40; laya leads at 120 (12 wins, 7 losses, 12 ties). Jev cannot be taught, only prompted, and is a hosted API (364 ms a request from India).
|