Crates.io | enfer_core |
lib.rs | enfer_core |
version | 0.1.2 |
source | src |
created_at | 2023-11-24 07:40:58.818228 |
updated_at | 2023-11-29 13:39:03.721953 |
description | Feakin is a architecture design and visual collaboration tool. This is the parser for Feakin. |
homepage | |
repository | https://github.com/unit-mesh/edge-infer |
max_upload_size | |
id | 1046854 |
size | 22,869 |
EdgeInfer enables efficient edge intelligence by running small AI models, including embeddings and OnnxModels, on resource-constrained devices like Android, iOS, or MCUs for real-time decision-making.
usage:
add to your Cargo.toml
:
[dependencies]
edgeinfer = "0.1.1"
in your main.rs
:
let model = std::fs::read("model/model.onnx").unwrap();
let tokenizer_data = std::fs::read("model/tokenizer.json").unwrap();
let semantic = init_semantic(model, tokenizer_data).unwrap();
let embedding = semantic.embed("hello world").unwrap();
assert_eq!(embedding.len(), 128);