How to Run Ollama Docker FastAPI: Step-by-Step Tutorial for Beginners

  Рет қаралды 4,916

Bitfumes

Bitfumes

Күн бұрын

Пікірлер: 20
@Bitfumes
@Bitfumes 5 ай бұрын
Please subscribe to Bitfumes channel to level up your coding skills. Do follow us on other social platforms: Hindi Channel → www.youtube.com/@code-jugaad LinkedIn → www.linkedin.com/in/sarthaksavvy/ Instagram → instagram.com/sarthaksavvy/ X → x.com/sarthaksavvy Telegram → t.me/+BwLR8bKD6iw5MWU1 Github → github.com/sarthaksavvy Newsletter → bitfumes.com/newsletters
@ano2028
@ano2028 5 ай бұрын
Thanks a lot! The whole tutorial is really to follow, I have been trying to dockerize and get my fastapi container and ollama container to interact with each for the last two days, you video helps me a lot
@Bitfumes
@Bitfumes 5 ай бұрын
waooo that's nice to know. and thanks for this amazing comment. please subscribe to my newsletter bitfumes.com/newsletters
@mochammadrevaldi1790
@mochammadrevaldi1790 5 ай бұрын
helpfully, Thank man!
@Bitfumes
@Bitfumes 5 ай бұрын
cool cool please subscribe to my newsletter bitfumes.com/newsletters
@NikolaosPapathanasiou
@NikolaosPapathanasiou 5 ай бұрын
Hey nice video man! Since the Ollama is running in the docker container, is it using the GPU ?
@Bitfumes
@Bitfumes 5 ай бұрын
not in my case it uses cpu but you need to specify runtime if you want to use GPU in docker so yes you can
@karthikb.s.k.4486
@karthikb.s.k.4486 5 ай бұрын
Nice . May I know how are you getting suggestions in vs code . When you press docker the command suggests are coming in VS CODE what is the settings for this please let me know
@Bitfumes
@Bitfumes 5 ай бұрын
Thanks bhai, bdw I am using GitHub copilot so maybe thats why I get suggestion
@HennuhoMifirinso
@HennuhoMifirinso 2 ай бұрын
Thanks Man! this works well but it downloads the model everytime you run docker-compose... is there a way to persists the model?
@Bitfumes
@Bitfumes 2 ай бұрын
You can use volume with docker and install model there so you don't have to download everytime your create container
@shreyarajpal4212
@shreyarajpal4212 3 ай бұрын
So I can directly host this as a website then right?
@Bitfumes
@Bitfumes 3 ай бұрын
yes or no yes you obviously can but it's not recommended although you can use AWS ECS to setup docker and then use same application
@mat15rodrig
@mat15rodrig 3 ай бұрын
thanks for the video!! Do you know how to resolve this error? ERROR:root:Error during query processing: HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded with url: /api/chat (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused'))
@Bitfumes
@Bitfumes 3 ай бұрын
make sure your ollama is running properly and your most use 0.0.0.0 for docker host
@iainmclean6095
@iainmclean6095 4 ай бұрын
Just so you know, this does not work on Apple Silicon.
@Bitfumes
@Bitfumes 4 ай бұрын
how much RAM you have in your mac ?
@iainmclean6095
@iainmclean6095 4 ай бұрын
@@Bitfumes 128 GB, M3 Max
@iainmclean6095
@iainmclean6095 4 ай бұрын
@@Bitfumes 128 GB - M3 Max
@iainmclean6095
@iainmclean6095 4 ай бұрын
@@Bitfumes I have 128GB Ram and an M3 Max, the error I think is related to Docker and Ollama running on Apple Silicon
Docker Tutorial for Beginners
50:38
mCoding
Рет қаралды 85 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 1,5 МЛН
Setting up a production ready VPS is a lot easier than I thought.
29:50
EASILY Train Llama 3 and Upload to Ollama.com (Must Know)
14:51
Mervin Praison
Рет қаралды 52 М.
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 217 М.
Docker Для Начинающих за 1 Час | Docker с Нуля
52:43
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 338 М.
How to run Ollama on Docker
10:37
Matt Williams
Рет қаралды 49 М.
EASIEST Way to Fine-Tune a LLM and Use It With Ollama
5:18
warpdotdev
Рет қаралды 188 М.
Learn Docker in 7 Easy Steps - Full Beginner's Tutorial
11:02
Fireship
Рет қаралды 2,1 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН