Find answers from the community

Updated 3 months ago

Anyone have best practices in mind?

Anyone have best practices in mind?
L
J
22 comments
Are you using poetry or uv ? Managing project deps with a pyproject.toml and lockfiles is the way to go
I just tried an update and everything now pretty much conflicts w/everything else.
I have built a monorepo, so there's a lot of dependencies, unfortunately.
dang -- monorepos are hard πŸ˜… In general python kind of sucks at this
Yeah. I'm staring at tons of ERT:
Attachment
Screenshot_2024-08-26_at_4.36.37_PM.png
... and going in circles.
wow thats hard to read lol

Do you have huggingface-hub explicitly in your deps?
HuggingFaceLLM has these deps

Plain Text
python = ">=3.8.1,<4.0"
huggingface-hub = "^0.23.0"
torch = "^2.1.2"
text-generation = "^0.7.0"
llama-index-core = "^0.11.0"
seems like that might be the cause of the issue?
Well, I have this:
huggingface-hub = {version = "^0.23.0", extras = ["inference"]}
LOL.

Today I refactored my entire codebase, added FastAPI and put my inferencing behind an API, added docker-compose -- but the thing I've spent the most time on is poetry. πŸ™‚
Oh, and the cursor.com app is fantastic.
hmmm, something is requesting huggingface-hub>=0.24.0,<0.25.0 -- I am struggling to see where this requirement is coming from though
I may have just solved it. Tryiing to build the image now.
I actually have a demoable backed now.
Which is amazing.
amazing! πŸ’ͺ
Sweet. It built. Now, will it run? πŸ™‚
Interesting..

Plain Text
A new version of the following files was downloaded from https://huggingface.co/Alibaba-NLP/new-impl:
- configuration.py
. Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
A new version of the following files was downloaded from https://huggingface.co/Alibaba-NLP/new-impl:
- modeling.py
. Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
It works. Now I have a different issue to resolve. Thanks as always.
Add a reply
Sign up and join the conversation on Discord