enfer_core

Crates.ioenfer_core
lib.rsenfer_core
version0.1.2
sourcesrc
created_at2023-11-24 07:40:58.818228
updated_at2023-11-29 13:39:03.721953
descriptionFeakin is a architecture design and visual collaboration tool. This is the parser for Feakin.
homepage
repositoryhttps://github.com/unit-mesh/edge-infer
max_upload_size
id1046854
size22,869
Fengda Huang (phodal)

documentation

README

Edge Inference Core

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);
Commit count: 110

cargo fmt