Rust Ollama By Examples - 4 Chapters (Full Tutorial - Rust AI)

  Рет қаралды 14,308

Jeremy Chone

Jeremy Chone

Күн бұрын

Пікірлер: 32
@JeremyChone
@JeremyChone 9 ай бұрын
IMPORTANT ollama-rs 0.1.6 introduced a breaking change (from 0.1.5) where stream.next() now returns a Result instead of a single GenerationResponse. The fix is straightforward. It has been implemented in the main branch and tagged as E01-01 ( github.com/jeremychone-channel/rust-xp-ollama/tree/E01-01 )
@christerpherhunter930
@christerpherhunter930 10 ай бұрын
Please do not stop producing these high quality videos!
@mr.daniish
@mr.daniish 8 ай бұрын
one of the top channels on the planet for rust and llms!
@janiscakstins2846
@janiscakstins2846 10 ай бұрын
This is one of the best Rust channels out there. Keep making these videos!
@MaxJM711
@MaxJM711 10 ай бұрын
Your videos are incredible Jeremy! I decided as one of my main New Years resolution to properly learn Rust this year and your channel has been nothing short of a miracle for me. Thank you so much for everything bro! I am doing my thesis next year and I wanted to make it about ML + Cybersecurity. I was thinking about making it all in Python (of course lol), but I may eventually use Rust for this in case the tooling is ready for something like that
@romanstingler435
@romanstingler435 9 ай бұрын
"Wrong answer because we know Rust is the best one" YES I like that :)
@GlebEagle
@GlebEagle 10 ай бұрын
WOW!!! That's very interesting topic! Thank you!
@abdulcodes
@abdulcodes 10 ай бұрын
Absolutely adore your content! Could you whip up a dazzling video on grpc tonic? How about crafting a mesmerizing e-commerce backend with microservices? Picture this: a seamless connection between a user app and an admin app, all beautifully showcased in the same video. Heartfelt thanks for your incredible contributions to the Rust community!
@JeremyChone
@JeremyChone 10 ай бұрын
Thanks for the kind words. On gRPC, I usually lean more towards json-rpc than grpc. I believe grpc serves its purpose in specific niches but has been overgeneralized. All the functionalities you described will work well with json-rpc too, offering increased versatility and virtually the same performance for those use cases. grpc becomes necessary when microsecond (not millisecond only) response times are needed, and when parsing speed is critical to the processing speed. For all other scenarios, json-rpc is more versatile that its overall value is higher for most use cases IMO, contrary to popular belief and momentum. Check out these videos: - Overview and insights: kzbin.info/www/bejne/fZSYf51rga-YZ7c - SQLBuilder / ModQL (related to json-rpc): kzbin.info/www/bejne/Y5WweWyLntx-p8k - Here's a mini high-level query spec I've developed for json-rpc: joql.org Now, if your team is really set on using grpc, then this might not be a discussion worth having, as grpc will get the job done, and with technologies like tonic and others, it could work ok.
@abdulcodes
@abdulcodes 10 ай бұрын
Thanks a lot, will try to play with json-rpc.But for the front end part for the majority of frameworks , they do not have support for json-rpc currently than they have for grpc
@maxali6591
@maxali6591 10 ай бұрын
Continue to teach us. Great thank you!
@prashlovessamosa
@prashlovessamosa 10 ай бұрын
Hey Jeremy thanks for making awesome stuff for us.
@ItaloMaiaTM
@ItaloMaiaTM 8 ай бұрын
25:49 - Makefiles are also a nice option for that.
@ItaloMaiaTM
@ItaloMaiaTM 8 ай бұрын
Really nice video, much appreciated!
@brianlogan4740
@brianlogan4740 10 ай бұрын
Ah yes thank you! Exactly what I needed!
@sunitjoshi3573
@sunitjoshi3573 10 ай бұрын
Thanks a lot for taking the time to put this out. Are you planning a Rust Web Dev course or a Learning Track? I would be very interested.
@JeremyChone
@JeremyChone 10 ай бұрын
So there is couple of videos about web dev. The Rust full Axum course, and the Rust Web App production coding.
@zeroows
@zeroows 10 ай бұрын
Thank you.
@HagbardCelineOnRust
@HagbardCelineOnRust 10 ай бұрын
Thanks for the video. I liked and subscribed 😛
@mjcc_
@mjcc_ 10 ай бұрын
Hey, great video Jeremy ! Is it possible to make a video to how to create a plugin for obsidian with this rust-ollama project ? I think it can be a realy cool comunity project too 😉
@ItaloMaiaTM
@ItaloMaiaTM 8 ай бұрын
== nevermind; saw your warning message; by the way, you could have used transpose to work around the api change. Why did you opt out of doing so? == At 15:16, `let res = res?;` worked here without the need to use map_err. Regardless, enjoying the video by buckets! I'm using llama2 model instead of the suggested one, so to save a bit in space. The docker Ollama docker container is working quite well too! Back to watching...
@JeremyChone
@JeremyChone 8 ай бұрын
Ho, cool, you might be right, i will check the code.
@JeremyChone
@JeremyChone 8 ай бұрын
Ok, yes, now we can use `let res_list = res?` without the `map_err`. It was leftover from ollam-rs `0.1.5` when it returned a single GenerationResponse and I think did not implement the standard output. I've updated the codebase. Also, I added a note because I think the handling of `Vec` might not be correct. It's a corner case, as the vector will mostly be of length 1, but it should still be fixed. I just need to understand what it means to have a vector length > 1. Here is the ticket I logged about the ollama-rs change: github.com/pepperoni21/ollama-rs/issues/20
@abobunus
@abobunus 9 ай бұрын
Is there a way to make your own language model with Rust? Train it and then use it as you showed in this video.
@백영승-h5d
@백영승-h5d 10 ай бұрын
너 잘하네 재능있어 열심히해🎉
@cathyaishu1179
@cathyaishu1179 2 ай бұрын
Does it support function calling?
@JeremyChone
@JeremyChone 2 ай бұрын
I do not think it does yet. You can work around it with some instruction and clear schema (even TypeScript schema work). But dfferent flow.
@eliasp.2759
@eliasp.2759 19 күн бұрын
It does now
@cthutu
@cthutu 10 ай бұрын
You will need an nVidia GPU to make use of the GPU acceleration. AMD is CPU-only :(
@JeremyChone
@JeremyChone 9 ай бұрын
Works ok on my Mac apple silicon.
@cthutu
@cthutu 9 ай бұрын
@@JeremyChone Unfortunately, my Linux-based PC with an AMD GPU (which is the best for Linux games) is not supported :( It falls back to CPU.
@prashlovessamosa
@prashlovessamosa 10 ай бұрын
Firsttt🎉 finally
Learn Rust OpenAI API - Building AI Buddy from Scratch!!!
3:00:49
Jeremy Chone
Рет қаралды 8 М.
UUID v7 vs. v4 + Rust Programming Examples
19:41
Jeremy Chone
Рет қаралды 16 М.
the balloon deflated while it was flying #tiktok
00:19
Анастасия Тарасова
Рет қаралды 36 МЛН
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 25 МЛН
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 60 МЛН
Rust Error Handling - Best Practices
21:33
Jeremy Chone
Рет қаралды 24 М.
Stop Letting AI Code Its Way - Command It with Devai CLI (Any Model)
19:36
Tonic makes gRPC in Rust stupidly simple
19:08
Dreams of Code
Рет қаралды 51 М.
How to Create a Custom Offline Fallback Page with Rails
20:09
Emmanuel Hayford
Рет қаралды 99
you need to build a RUST desktop app!!
27:21
Travis Media
Рет қаралды 325 М.
9 Rust Best Practices with Real Lib (part 1/3)
27:11
Jeremy Chone
Рет қаралды 11 М.
5 Steps to Learn Rust Programming
25:06
Jeremy Chone
Рет қаралды 8 М.
Rust Programming: The Ultimate Builder Pattern Tutorial
20:22
Jeremy Chone
Рет қаралды 40 М.
Neural Networks From Scratch in Rust
9:12
codemoon
Рет қаралды 17 М.
Rust genai - Multi-AI Providers Client
12:34
Jeremy Chone
Рет қаралды 8 М.