Instructions to use gdelatournelle/laya-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use gdelatournelle/laya-onnx 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
|
Download ONBOARD.md from gdelatournelle/laya-onnx: direct link, hf CLI and curl.
- Browser
- Download file 1.68 kB
-
https://huggingface.co/gdelatournelle/laya-onnx/resolve/main/ONBOARD.md
- Command line
-
hf download hf://gdelatournelle/laya-onnx/ONBOARD.md
-
curl -L -o ONBOARD.md https://huggingface.co/gdelatournelle/laya-onnx/resolve/main/ONBOARD.md
1.68 kB
Onboard your AI agent to run laya-onnx
Paste this file (or the one-liner in the README) into Claude Code, Codex, Cursor, Copilot, or any coding agent. The agent must follow every step. Safe to re-run.
Goal
Install laya-onnx in the current workspace so the human can call laya-onnx predict and laya-onnx-snake on CPU (Intel i7 / 16 GB class). Do not download multi-GB weights unless the human asks.
Steps
- Confirm Python ≥ 3.11 (
python3 --version). If missing, tell the human how to install it and stop. - If this directory is not already the repo:
git clone https://github.com/Geoking2104/laya-onnx.git cd laya-onnx - Create a venv and install extras:
On Intel CPU also:python3 -m venv .venv source .venv/bin/activate pip install -U pip pip install -e ".[demo,dev]"pip install -e ".[openvino]"(ignore failure if wheels are missing). Only if the human asked to export graphs:pip install -e ".[export]". - Verify:
laya-onnx --help PYTHONPATH=. python -c "from laya_onnx import load; print('import ok')" - Write
AGENTS.mdat the repo root if it does not exist. Point at README,examples/,laya-onnx predict,optimize --precision int8, andexamples/snake.html. - Optional MCP: this repo does not ship a hosted MCP server yet. Do not invent RunPod keys. If the human wants GPU later:
npx skills add runpod/runpod-plugins-official. - Report back Python version, install path, working commands, and that weights live on Hugging Face (
receptron/laya-onnx).
Do not commit .venv, ONNX weights, or API keys.