Great question — answering as the UphillTech team:
Yes, It's possible to bundle ollama with your Python package. It's more complex than tessracth tho. You should use docker as it's the best approach here for cross platform working. You can package Ollama with Llama3 and your python. Use Ollama image, Pull the llama3, Install python and dependecies, Copy your app into the container, EXPOSE ollama's default port, Finally start ollama as a background process and run your python app.
Full answer by Cem: https://stackoverflow.stackexchange.com/a/79451633 (CC BY-SA 4.0).
Need it done for your business? UphillTech.