Тёмный
Venelin Valkov
Venelin Valkov
Venelin Valkov
Подписаться
Misusings of AI, Stats & Programming
Комментарии
@davidtindell950
@davidtindell950 День назад
New Subscriber: Trying to adapt my local Ollama RAG apps to Streamlit !
@rockefeller7853
@rockefeller7853 5 дней назад
In a world where there is an ocean of AI , LLMs related materials out there, with a lot of them often misleading, what you have done with your AI-Bootcamp repo is just...... incredible. You are a hero man. Thanks
@spearof5775
@spearof5775 5 дней назад
tokenizer = AutoTokenizer.from_pretrained(r'/content/drive/MyDrive/trained_models/Dersat-2-llama-3.h5') model = AutoModelForCausalLM.from_pretrained( model_name, torch_dtype=torch.float16, device_map="auto", )# Load the model from the directory model.resize_token_embeddings(len(tokenizer), pad_to_multiple_of=8) model = PeftModel.from_pretrained(model,r'/content/drive/MyDrive/trained_models/Dersat-2-llama-3.h5') model = model.merge_and_unload() ## the error is : RuntimeError: Error(s) in loading state_dict for PeftModelForCausalLM: size mismatch for base_model.model.model.embed_tokens.weight: copying a param with shape torch.Size([128257, 4096]) from checkpoint, the shape in current model is torch.Size([128264, 4096]). size mismatch for base_model.model.lm_head.weight: copying a param with shape torch.Size([128257, 4096]) from checkpoint, the shape in current model is torch.Size([128264, 4096]). can you solve it ?
@muhannadobeidat
@muhannadobeidat 7 дней назад
About half way through, video is excellent, nicely explained, very clearly done with good pace. No music is such a treat!
@Onur-j1e
@Onur-j1e 8 дней назад
Hello, thanks for the great tutorial. I'm stuck at this section: "db = sqlite3.connect("example.db") db.enable_load_extension(True) sqlite_vec.load(db) db.enable_load_extension(False)" I'm doing everything but it says "OperationalError: The specified module could not be found." on sqlite__vec.load() side. Can you help me on that?
@mahoanghai3364
@mahoanghai3364 9 дней назад
Awesome video <3 Thank bro <3
@teetanrobotics5363
@teetanrobotics5363 9 дней назад
Awesome content. Request you to categorise your channel videos into ordered playlists
@venelin_valkov
@venelin_valkov 10 дней назад
Full-text tutorial (requires MLExpert Pro): www.mlexpert.io/bootcamp/langgraph-basics
@surygarcia6823
@surygarcia6823 11 дней назад
Can I export the chatbot so I can integrate it into an app?
@bassamry
@bassamry 12 дней назад
can you share the notebook?
@rocio6454
@rocio6454 14 дней назад
Hello Venelin, thanks for the video. Iface this problem when running the query: "I encountered an error while trying to use the tool. This was the error: StructuredTool._run() missing 1 required keyword-only argument: 'config'. Tool list_tables accepts these inputs: list_tables() - List the available tables in the database" any help here? Thanks
@MrQuicast
@MrQuicast 15 дней назад
I’m trying to fine-tune the LLaMA 3.1 8B model without quantization, but when I try to use the pipeline with the unquantized model, I encounter this error: Trying to set a tensor of shape torch.Size([128256, 4096]) in 'weight' (which has shape torch.Size([128264, 4096])), this looks incorrect. Do you know why this is happening? maybe i'm using the wrong pad token idk. Thanks in advance
@DataFinSightAI-e1c
@DataFinSightAI-e1c 15 дней назад
Amazing video
@venelin_valkov
@venelin_valkov 15 дней назад
Full-text tutorial (requires MLExpert Pro): www.mlexpert.io/bootcamp/rag-from-scratch
@pepeka1772
@pepeka1772 15 дней назад
Hi, how's it going? I want to integrate a chatbot into my website. NO WhatsApp. Is it possible to create a CMS to manage this chatbot?
@venelin_valkov
@venelin_valkov 15 дней назад
Possible - yes! It will be a project though, wouldn't go with building it from scratch. Checkout LangChain and/or LlamaIndex as starting points. Look at pgvector if you happen to use Postgres/Supabase. Also, there exist some premade solutions that work quite well. Btw, me and a few friends are building exactly such system that will be made available to the public, will make a video once it is released. Best of luck!
@VLM234
@VLM234 16 дней назад
Great tutorial as usual😊. I have two queries: 1. You are using sqlite-vec for fast retrieval? Otherwise just store query and response in any db and using cosine similarity on the customer query fetch the top most relevant response. 2. Why are you using LLMs here, is it just bcoz to get the concise and short answer? Because LLMs might hallucinate in some cases which i think can be more harmful sometimes.
@venelin_valkov
@venelin_valkov 15 дней назад
1. I use it because it is fast and easy to understand for this use case (simple RAG from scratch). You can use whichever vector store or database works for you. I prefer SQLite because it is an easy "run your database everywhere" solution. sqlite-vec works with SQLite and performs the similarity search for you. One general rule I follow is, "When the database can do something for you, let it do it" (as long as it is fast and simple enough). A great benefit of this approach is that your code often becomes simpler to read and understand. 2. The LLM is responsible for combining the context (retrieved questions and answers) and providing an understandable and relevant answer to the user's query. I completely agree with you that the LLM can sometimes produce incorrect responses, but it generally provides more conversational answers and takes into account the chat history. Thank you for your kind words!
@VLM234
@VLM234 15 дней назад
@@venelin_valkov thank you so much for your kind response.
@KapilBharwad-b1h
@KapilBharwad-b1h 16 дней назад
if we want retrieve the images related to the text or the question will it be possible if yes how
@parthvashista356
@parthvashista356 6 дней назад
Same question
@awssecuritylabs
@awssecuritylabs 16 дней назад
Hi.. how can i subscribe to ml expert
@venelin_valkov
@venelin_valkov 15 дней назад
Hi, You can subscribe for MLExpert here: www.mlexpert.io/ Let me know if you have any questions! Thank you for watching!
@allaalzoy2010a
@allaalzoy2010a 19 дней назад
If we apply the same approach to a dataset with another language like France or Arabic, will the approach change? Assume same columns structure, and names like you showed in the video.
@radacror5146
@radacror5146 23 дня назад
thankyou so much for the vids.... Amazing content... just one query Shouldnt top be max(ys)?? at 24:27??
@MrGeotzal
@MrGeotzal 24 дня назад
That's one more insightful tutorial. Thank you Venelin!
@isaacgroen3692
@isaacgroen3692 24 дня назад
If you find a function that can completely parse any given python function into a valid tools entry, tell me :)
@yankoaleksandrov
@yankoaleksandrov 24 дня назад
Can llm be used for controlling robots ?
@yankoaleksandrov
@yankoaleksandrov 24 дня назад
Keep the good work
@yankoaleksandrov
@yankoaleksandrov 24 дня назад
Great videos
@yankoaleksandrov
@yankoaleksandrov 24 дня назад
Hi
@venelin_valkov
@venelin_valkov 25 дней назад
Full-text tutorial (requires MLExpert Pro): www.mlexpert.io/bootcamp/llm-function-calling
@HoneyDoll894
@HoneyDoll894 25 дней назад
So i guess this is another tutorial that ends after writing the basic thing with a "in the next video we'll make it do something" but that video never came.. I just want a single full start to end tutorial of a neural network....
@mohammedaitkheri6200
@mohammedaitkheri6200 26 дней назад
can we follow the same steps to finetuning another model LMM like Mistral AI ?
@SahlEbrahim
@SahlEbrahim 26 дней назад
is there any method to correct that mistake about calculating profits?
@janoskarovits7129
@janoskarovits7129 28 дней назад
Nice. What I am looking for though is a similar system for not just one document but one that is suitable to shat with a corpus of 1000s of documents in my archive, and - to be greedy - to create a relational map from the perspective of the query. Any hints?
@lucasalberto
@lucasalberto 12 дней назад
👂
@gowithgaurav9617
@gowithgaurav9617 29 дней назад
Is it safe to use huggingfaceembeddings for confidential data? How secure it is?
@SahlEbrahim
@SahlEbrahim Месяц назад
anyoneelse have the issue with loading dataset????
@RAG-World-p9i
@RAG-World-p9i Месяц назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3crJNnAXd6w.html
@jrfcs18
@jrfcs18 Месяц назад
How do you modify the code so that it starts with the same document you already ingested when you restart the app?
@mazyarfanaeipour839
@mazyarfanaeipour839 Месяц назад
Hi Thank you for sharing your knowledge. Please share the code of this video if possible. Thank you.
@venelin_valkov
@venelin_valkov Месяц назад
Full-text tutorial (requires MLExpert Pro): www.mlexpert.io/bootcamp/ragbase-local-rag
@fardinahmadpor1225
@fardinahmadpor1225 Месяц назад
Thank you in have watch several videos on llama fine tuning With lots of differences you are the best ! Especially anout dataset and how you formatted it
@awmawam
@awmawam Месяц назад
I'm making my final year project and it involves training a model on custom data, thanks for this video.
@cchristoff
@cchristoff Месяц назад
Дали base model-a ще може да се тренира с двойки въпрос-отговор на Български?
@nhatduynguyentran4420
@nhatduynguyentran4420 Месяц назад
when i run trainer.fit(model,data_module) 54 has_train_dataloader = is_overridden('train_dataloader', model) 55 if not has_train_dataloader: ---> 56 raise MisconfigurationException( 57 'No `train_dataloader()` method defined. Lightning `Trainer` expects as minimum a' 58 ' `training_step()`, `train_dataloader()` and `configure_optimizers()` to be defined.' MisconfigurationException: No `train_dataloader()` method defined. Lightning `Trainer` expects as minimum a `training_step()`, `train_dataloader()` and `configure_optimizers()` to be defined how to fix
@VijayKumar-nz6ij
@VijayKumar-nz6ij Месяц назад
Sir could you share the text summarisation with N-grams using deep learning back end code 😢
@TayyabAhmad007
@TayyabAhmad007 Месяц назад
I trained it with 2 epochs and the result was amazing! Nice explanation btw!!
@francycharuto
@francycharuto Месяц назад
Could you share your use case?
@daviddooling6452
@daviddooling6452 Месяц назад
that's great; llama-parse is sweet. Please make a video showing how to use a knowledge graph index in conjunction with the vector DB!
@khanra17
@khanra17 Месяц назад
If you don't know what are you doing then don't make videos !! 🤬
@ZacMagee
@ZacMagee Месяц назад
Great breakdown. Keep it up
@a.amaker4038
@a.amaker4038 Месяц назад
nice wutang shirt and great content. thanks
@TheRottweiler_Gemii
@TheRottweiler_Gemii Месяц назад
Can we fine tune to 2bit model ?
@stellaz2110
@stellaz2110 Месяц назад
Great video! Could you share how to build the webpage with FastAPI like you did? or any tutorials, thanks!
@karthikeyakollu6622
@karthikeyakollu6622 Месяц назад
Im looking for this ❣️