by Shrezzing · 2y ago · 0 comments
I'm not a python user, but in most languages, libraries are referenced in (what most devs would consider) boilerplate code. Purely conjecture, but perhaps without boilerplate code, the LLMs are left guessing the names of popular libraries and just merges together two common naming conventions "huggingface" and "-cli".
For huggingface, the tool is called huggingface-cli, but the package is called huggingface_hub[cli].
IMO, thats bad naming. If you make a tool called X, just publish it in a package called X.
I think what's worse is publishing a package under a different name than its root namespace.
I question if one should ever do that... Packages are free... Just make one package per binary, and then a metapackage for those who want to install the whole suite.
Like getter/setter in java for all your attributes.
I would never consider imports boilerplate code.
But isn't it also a waste to use data centers full of GPUs to process terabytes of text to accomplish the same thing better programming language design could?
If it wouldn't be beneficial for writing code, which it is, we wouldn't use it.
But yes if we could create better languages or systems, it would be a waste. But we tried multiply new programming languages, we have no code platforms etc.
It does look like though that LLM is still better than all of those approaches.