laya-aten-torchscript

The Laya English encoder traced to TorchScript, optimized for inference and Zstandard-compressed, plus its F32 decision and action head weights, for LocAI's ATen CPU route.

Derived by LocAI from convaiinnovations/laya at revision 1c5edc17a7acd8701df6fc341c0d179f1c62c982. This repository holds only the derived files; every unchanged publisher file is fetched from its upstream repository at its pinned revision.

Files

Path Bytes SHA-256
encoder.pt.zst 934637941 52a9eb6e434fec469975f78d09887b19a30ec04be9987c930be8672e36a7d73c
head.safetensors 106051868 d5e38b8c9f47e001cca6143c76c19b7d70882fe1d071109b16127a74ee94da2b

Inputs

Repository Revision Path SHA-256
convaiinnovations/laya 1c5edc17a7acd8701df6fc341c0d179f1c62c982 model.safetensors 891102d372688fc2a094dac56a384bc537b87c63f21f9f3dac0be2b7cbc8d86c
convaiinnovations/laya 1c5edc17a7acd8701df6fc341c0d179f1c62c982 rl_agent_config.json ae287b56bbcf5f8c4f4541ae9dfd00c914c4c48b940b8398c3058af37ba92bbd
convaiinnovations/laya 1c5edc17a7acd8701df6fc341c0d179f1c62c982 encoder/config.json bf3ab80598fdccf414855a2ce80f22859e4492d06ca8a62ddd1cfb63972f8979
convaiinnovations/laya 1c5edc17a7acd8701df6fc341c0d179f1c62c982 tokenizer/tokenizer.json 6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30
convaiinnovations/laya 1c5edc17a7acd8701df6fc341c0d179f1c62c982 tokenizer/tokenizer_config.json 50044de60daaa73df97d262e15a40d4faf0160e7d742df64b377877a1320dd12
https://github.com/NandhaKishorM/laya.git 573e5b62696ba441230cd6be71d593331b5d23af laya git

Recipe

These files are the original export outputs. They cannot be rebuilt byte for byte: TorchScript tracing embeds absolute source paths (the interpreter prefix and the exporter script path, with line numbers) in the graph's code and debug_pkl records, and names the archive root after the file stem, so the traced graph 77abaadb648f10246a4aa0487ab6fdfb97df84b5bd2ee9e60d4b13ed243f33e5 (1,579,767,082 bytes) that optimize_laya_aten_graph.py requires depends on where the unrecorded 2026-09-23 export ran. Four offline exports with the locked environment on MacBookPro18,2 passed 14/14 raw-logit parity and reproduced head.safetensors d5e38b8c9f47e001cca6143c76c19b7d70882fe1d071109b16127a74ee94da2b but gave graphs c4f93a71, c04fdf38 and 42baaa97. The hosted files are the original 2026-09-23 outputs (encoder.pt.zst 52a9eb6e, head.safetensors d5e38b8c) that the runtime evidence used from the maintainer's derived cache; they are the bytes both Laya ATen profiles pin. They are hosted unchanged, each checked against the SHA-256 its LocAI profiles pin, and the recipe below records how they were made.

tools/qualification/prepare_laya_aten.py (SHA-256 76caf141a2eb5d85bf11b35f1af181fdd9f5f37da7e15651528cbe62031af283) from LocAI commit cbd0d19c94b4e111331993b252e00fb08bfc8cab, run offline under tools/qualification/run-offline-darwin.sh.

Tools: Python 3.14.6; tools/qualification/python/laya-aten-requirements.lock (torch 2.13.0, transformers 5.12.1, tokenizers 0.22.2, safetensors 0.8.0, numpy 2.5.0, huggingface-hub 1.21.0); Zstandard CLI 1.5.7 (zstd -3 -T1); Laya source NandhaKishorM/laya at 573e5b62696ba441230cd6be71d593331b5d23af (Apache-2.0).

python3.14 tools/qualification/prepare_laya_aten.py --model-dir INPUTS --source LAYA_SOURCE --output OUTPUT

It also reads these LocAI files from the same commit:

  • tools/qualification/python/probe_laya_aten_encoder.py (SHA-256 297f27a1d4da8ed8de3853dd7497f71f4ced9e902d4c32fde2cb1daf5aa528a4)
  • tools/qualification/python/optimize_laya_aten_graph.py (SHA-256 2517995818ef9743a7975ffbc6c59453038c76f83b3f7ca6a61b9431ac2526d3)
  • tools/qualification/python/export_laya_fixtures.py (SHA-256 ced65fc5408113b0eba777343dd67e3995e00f33e97834750933c0e313eac589)
  • tools/qualification/python/requirements.lock (SHA-256 c16d3d6ef5d8b717aa33db1ac015ef5e3e9df8f7509d4b89b0265ae1682b34ac)
  • tools/qualification/python/laya-aten-requirements.lock (SHA-256 224f7b7922a44d4f29e54e0d82ccf8793dc808c33587edc562ccaff7c5169b14)
  • tools/qualification/verify_assets.py (SHA-256 42e4b0309bfc33b582d26896f11654217647a5fe6562de24aa6a18b81cc489b8)
  • qualification/models/laya-english.toml (SHA-256 67aab90b5770e86ac68b92db4debe93556d3c50706b48d8dd4a5729985860ca2)
  • fixtures/laya/inputs.json (SHA-256 eca9272de8149dd0eae9f4f0112da448749b32db9fce84a62866d632b4eb265b)
  • fixtures/laya/preprocessing.json (SHA-256 19f49f6ed699231ed5657fbd9d9e6141deb9515735ee3f443d08231e47676ed9)
  • fixtures/laya/outputs.json (SHA-256 b015cda9dc29a10e67c3fb95953689417c845c5f7463676cb4118a5e8f2b3777)

Profiles

These files complete the following LocAI deployment profiles:

  • laya-english-aten-apple-cpu-choice2510-local-v1 (pack prepared-laya-english-aten)
  • laya-english-aten-apple-cpu-choice2510-local-v2 (pack prepared-laya-english-aten)

Licence

Apache-2.0, the licence of the base model; see LICENSE (from https://raw.githubusercontent.com/NandhaKishorM/laya/573e5b62696ba441230cd6be71d593331b5d23af/LICENSE) and NOTICE.

This is a format conversion with no quality claim: no evaluation was run to produce it. LocAI's informational test records live in its repository.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for locai-models/laya-aten-torchscript

Finetuned
(261)
this model