-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "enfer_core" | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
authors = ["Phodal <[email protected]>", "CGQAQ <[email protected]>"] | ||
description = "Feakin is a architecture design and visual collaboration tool. This is the parser for Feakin." | ||
repository = "https://github.com/unit-mesh/edge-infer" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
# Enfer Core = EdgeInference Core | ||
# 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`: | ||
|
||
```toml | ||
[dependencies] | ||
edgeinfer = "0.1.1" | ||
``` | ||
|
||
in your `main.rs`: | ||
|
||
```rust | ||
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); | ||
``` | ||
|
||
|