question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

First off, great project, thank you for building this!

Have you considered building a package for PyPI? The models are available on the Hugging Face Hub and the Hugging Face Hub package can be used to programmatically download/cache the models.

Another idea is that encoder.pt and decoder.pt could also be uploaded to a new model on the Hub so they don’t need to be dynamically converted at runtime for the Torch model.

One last thing to consider is changing prints to log statements, so they could be turned off if desired.

General idea is someone can run pip install then be up and running regardless of the runtime platform (Windows/Linux/macOS).

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kuprelcommented, Jul 1, 2022

I added the package to PyPI and now the entire setup process is pip install min-dalle. The model parameters are downloaded as needed with just the requests library. Thanks for the suggestions. I should probably also add a flag for verbose to prevent the print statements

1reaction
kuprelcommented, Jul 2, 2022

Wow that’s really cool

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing Packages - Python Packaging User Guide - Python.org
This section covers the basics of how to install Python packages. ... in your shell after installation, you'll need to add the directory...
Read more >
How to install pip to manage PyPI packages easily
Installing Python pip on your system allows you to manage PyPI packages easily. Many of these packages can be installed just by typing...
Read more >
pypi-install
PyPi -Install enables you to upload Python code on pypi using just a single function call. After running this, you can install your...
Read more >
How to Upload Your Python Package to PyPI and pip
Step 1: Ensure you have pip installed · Step 3: Package your Python code · Step 3: Create the source distribution of the...
Read more >
pip install - pip documentation v22.3.1
Install to the Python user install directory for your platform. Typically ~/.local/, or %APPDATA%Python on Windows. (See the Python documentation for site.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found