Coder Social home page Coder Social logo

youth's Introduction

Youth

Youth is a playground for me to explore LLM using Rust on any hardware.

You are given the short story "Youth", write a teaser for someone that never read it
> In the heart of the countryside, two unlikely friends - Red and Slim - stumble upon mysterious
creatures that could change their lives forever. As they navigate the thrilling world of possible
extraterrestrial beings and the challenges of youthful curiosity, they'll learn valuable lessons
about friendship, trust, and the incredible mysteries of the universe. Join them on this
captivating adventure filled with laughter, suspense, and the pure joy of discovery.

STT/Text -> RAG -> LLM -> TTS/Text

STT

Speech to Text is done using Whisper.

This part is currently unused. My makeshift voice activation detector works well enough but it removes all punctuation. There are far better solutions but not available in Rust currently. For now using text is good enough for me.

RAG

Retrieval Augmented Generation is where most of the exploration happens.

Documents are cut into chunks then all words are stored in an FST to speedup bm25 search and embeddings are generated.

For each query, bm25 and embeddings results are evaluated. I would love to have a cross encoding model available in Rust to re-rank the results.

LLM

Inference is done with KoboldCpp.

There are a few Rust projects that can do inference. But they either don't work on AMD hardware or don't supports a big variety of models.

TTS

Text to Speech is done by Piper.

There aren't really any TTS Rust crate currently. Even with other languages, finding a fast TTS on AMD hardware is not easy.

youth's People

Contributors

leudz avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.