pie 0.1.1

Programmable Inference Engine (PIE)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
interface input-text {

    use core.{queue};
    use allocate.{object-id};         // Import object ID type for memory references

    // Converts input tokens into embeddings at specified positions
    embed-text: func(
        queue: borrow<queue>,         // Queue to execute the embedding operation
        emb-ids: list<object-id>,     // Output object IDs where embeddings will be written
        tokens: list<u32>,            // Token IDs to embed
        positions: list<u32>          // Positional indices for each token
    );

}