tictonix

Library Listed Dormant

A library that provides the ability to convert tokens into embeddings, as well as to encode their positions

Checked · Sources

Downloads
0
Dependents
0
Stars
9
Forks
0
Contributors
1
Commits
21
Latest release
1.0.1 ·

About

From the project README ·

Project Preview

Russian version

Description

This crate provides functionality for working with vector representations of words (embeddings) and positional encoding. It is intended for use in NLP tasks, deep learning, and your custom projects.

Also, this project is the second step (step 1 tokenizer) towards own implementation of LLM on Transformer architecture.

Provided functionality:
Structure of Embeddings
  • Creating a new embedding matrix by various methods such as: Gaussian, Xavier, Uniform.
  • Constructing the resulting embedding matrix for an array of tokens (indices), and obtaining a specific embedding for a token (index).
  • Updating (replacing) the embedding for a particular token (index).
Structure of PositionalEncoding
  • Creating a new positional encoding matrix by various methods such as: Sinusoidal PE, Relative PE, Rotary PE.
  • Applying positional encodings to the embedding matrix.
  • Returning a part of the positional encoding matrix for a sequence, and a particular positional encoding by its position.
Structure of MatrixIO
  • Saving to a file, and retrieving the embedding matrix from the file. Available formats are .safetensors and .npy.

UPD: Important clarifications:

Read the full README
  • In this implementation, the embedding matrix has columns corresponding to tokens (each column is an embedding for one token).
  • All calculations are performed exclusively on CPU (without GPU).
Installing

Add to your Cargo.toml:

[dependencies]
tictonix = "1.0.1"
Logging

The project uses crate log which provides a logging facade.

At the moment logging is implemented only for IO operations (saving and loading files), with a success message.

You can use any compatible implementation (e.g. env_logger, fern, simple_logger, tracing, ...) To do this, just initialize the selected logger in your application before starting.

Example of initialization with env_logger:

fn main() {
    Builder::new()
        .filter_level(LevelFilter::Info)
        .filter_module("tictonix", LevelFilter::Info)
        .init();
    // Your code
}
Usage

See examples for usage.

Documentation

See documentation for the project.

Glossary
  • Tokenization is the process of breaking text into separate elements called tokens. Tokens can be words, characters, sub-words, or other units, depending on the chosen tokenization method. This process is an important step in text preprocessing for Natural Language Processing (NLP) tasks.
  • LLMs (large language models) are large language models based on deep learning architectures (e.g., Transformer) that are trained on huge amounts of textual data. They are designed to perform a wide range of tasks related to natural language processing, such as text generation, translation, question answering, classification, and others. LLMs are capable of generalizing knowledge and performing tasks on which they have not been explicitly trained (zero-shot or few-shot learning).
  • Transformer is a neural network architecture proposed in 2017 that uses the attention mechanism to process sequences of data such as text. The main advantage of Transformer is its ability to process long sequences and take context into account regardless of the distance between elements of the sequence. This architecture is the basis for most modern LLMs (such as GPT, BERT and others).
  • Embedding is a numerical (vector) representation of text data (tokens, words, phrases or sentences).
  • Positional Encoding is a technique used in the Transformer architecture to convey information about the order of elements in a sequence. Since Transformer has no built-in order information (unlike recurrent networks), positional encoding adds special signals to token embeddings that depend on their position in the sequence. sequence. This allows the model to take into account the order of words or other elements in the input data.
P.S.

Don't forget to leave a ⭐ if you found this project useful.

Runs on
GPU support unknown
What shows it
  • no dependency or feature matches a backend row
Native code
None found
  • No native code found
Python bindings
No Python binding crate found
License
MIT

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

tictonix beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
tictonix This page Listed Dormant

A library that provides the ability to convert tokens into embeddings, as well as to encode their positions

0 downloads over 30 days 0 9 1.0.1 GPU support unknown No native code found MIT
fastembed-rs Featured

Library for generating vector embeddings, reranking locally.

1,147,765 downloads over 30 days 331 1,051 7.6.1 CUDA, WebGPU, Metal Binds native code: accelerate-src (feature accelerate), intel-mkl-src (feature mkl), ort-sys (feature directml) Apache-2.0
model2vec-rs Featured

Official Rust Implementation of Model2Vec

194,422 downloads over 30 days 48 234 0.4.0 GPU support unknown No native code found MIT

fastText pure Rust implementation

102,405 downloads over 30 days 4 71 0.8.1 GPU support unknown Binds native code: cfasttext-sys, cfasttext_static. Build uses a native toolchain: cc MIT
splintr Listed

Tokenizer for Rust and Python: pure Rust by default, with 18 bundled vocabularies and four backends covering BPE, SentencePiece and WordPiece. Its output matches Hugging Face tokenizers id for id on 14 model families, including GPT-2, Qwen, Whisper, T5 and BERT.

Python bindings

8,204 downloads over 30 days 7 63 0.22.2 GPU support unknown Binds native code: pcre2-sys (feature pcre2) MIT
finalfrontier Listed Dormant

Train/use word embeddings with subword units

24 downloads over 30 days 0 90 0.9.4 GPU support unknown No native code found Apache-2.0 OR BlueOak-1.0.0
cleora App Listed

Cleora AI is a general-purpose open-source model for efficient, scalable learning of stable and inductive entity embeddings for heterogeneous relational data. Created by Synerise.com team.

0 binary downloads per release Not applicable 545 Not measured Not measured Not measured
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 0 active dependents and 0 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 9 stars, 0 forks and 1 contributor. It needs 4,539 stars, 434 forks and 79 contributors together.
  • The check finds no release commit or manifest that ties the crate to the repository.
  • The project is dormant and not finished. Dormancy rule

What else the check found

  • The last activity is on 21 May 2025, 537 days ago. That reaches the 365 days the rules expect, so the project is dormant. Dormancy rule

Not measured: Latest release fails cargo check.

Check notes

  • published from commit 2f5e8f9eb8fe426073f9c6cdbd5cd1442c930aad that no branch or tag of the repo holds

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 1.0.1 base 300, raised to the 365-day floor: E = 365 days
  • dormancy: last activity 2025-05-21, 537 days ago, E = 365: dormant
  • featured: not featured: active_users 0 < 11 and new_adopters 0 < 9 and repository route stars 9 (needs 4539), forks 0 (needs 434), contributors 1 (needs 79); repository link not verified; dormant and not stable
  • listed: listed: no archive, new or featured rule applies

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption0 active dependents, 0 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents0crates.io database dumpYes
New dependents (365 days)0crates.io database dumpYes
Peak active dependents0crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 17 months ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2025-05-21GitHub repositoryYes
Latest release2025-05-01crates.io database dumpYes
First release2025-04-02crates.io database dumpYes
Latest version1.0.1crates.io database dumpYes
Days the oldest outside issue waits for a reply0GitHub repositoryYes
Maintainer replies over 365 days0GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repofalsecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution9 releases, 0 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases9crates.io database dumpYes
Downloads over 30 days0crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository9 stars, 0 forks, 1 contributors, 21 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars9GitHub repositoryYes — one part of the repository route
GitHub forks0GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account1GitHub contributorsYes — one part of the repository route
Commits on the default branch21GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseMITcrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesGPU support unknowncrates.io database dumpNo
What shows each backendno dependency or feature matches a backend rowcrates.io database dumpNo
Native code, from listed crates and their dependenciesNo native code foundcrates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly0crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.