Code Monkey home page Code Monkey logo

Comments (8)

jamaliki avatar jamaliki commented on June 27, 2024

Hi,
If this is the first time you are trying to use either the build or build_no_seq commands, then it needs to download the model weights. Are you connected to the internet?

from model-angelo.

ning-2022 avatar ning-2022 commented on June 27, 2024

Hi Jamaliki,

 Nice to hear from you.  Yes, your answer is very correct. Actually, this machine installed with model_angelo has an unstable connection with the internet. I will try another way.  Thanks so much for your answer. It really helps me.  

All best,
Ning

from model-angelo.

ning-2022 avatar ning-2022 commented on June 27, 2024

Hi Jamaliki,

 Sorry to bother you again. I have tried to change the internet environment for my machine. But it failed to download the model weights. Could I download  this model weights by myself via git or wget commands and equip them into somewhere? Please give me some suggestions.  Thanks!

All best,
Ning

from model-angelo.

jamaliki avatar jamaliki commented on June 27, 2024

Hi,

Yes you can download them by yourself. Although I am not sure which part is giving an error, is the ESM model downloading or the ModelAngelo weights. So, could you upload your model_angelo.log file?

from model-angelo.

jamaliki avatar jamaliki commented on June 27, 2024

In the meantime, here is a bash script to download the weights yourself (courtesy of GPT-4 ;) ):

#!/bin/bash

# Check if the bundle_name is provided
if [ -z "$1" ]; then
    echo "Usage: $0 <bundle_name>"
    echo "Available bundle names: original, original_no_seq, small_gpu"
    exit 1
fi

# Define download links
declare -A bundle_name_to_link
bundle_name_to_link=(
    ["original"]="https://zenodo.org/record/7733060/files/original.zip"
    ["original_no_seq"]="https://zenodo.org/record/7733060/files/original_no_seq.zip"
    ["small_gpu"]="https://zenodo.org/record/7733060/files/small_gpu.zip"
)

# Set the bundle_name
bundle_name="$1"

# Determine torch.hub directory
if [ -n "$TORCH_HOME" ]; then
    torch_hub_dir="$TORCH_HOME/hub"
else
    torch_hub_dir="${XDG_CACHE_HOME:-$HOME/.cache}/torch/hub"
fi

# Create destination directory
dest="$torch_hub_dir/checkpoints/model_angelo/$bundle_name"
mkdir -p "$(dirname "$dest")"

# Check if the file already exists
if [ -f "$dest/success.txt" ]; then
    echo "Bundle $bundle_name already exists."
    exit 0
fi

# Download and extract the zip file
echo "Setting up bundle with name: $bundle_name for the first time."
wget -q -O "${dest}.zip" "${bundle_name_to_link[$bundle_name]}"
unzip -q "${dest}.zip" -d "$(dirname "$dest")"
rm "${dest}.zip"

# Create success.txt file
touch "$dest/success.txt"
echo "Successfully downloaded model" > "$dest/success.txt"

echo "Bundle $bundle_name successfully installed."

from model-angelo.

jamaliki avatar jamaliki commented on June 27, 2024

You should run the script above with the model_angelo conda environment activated twice. Once for original and once for original_no_seq

from model-angelo.

ning-2022 avatar ning-2022 commented on June 27, 2024

Thanks for your quick replies. The script you provided is working to download the weights now. I'm not sure whether this connection error relates about ESM model or model_weights downloading. Here is my error log file. Thanks for your time.
model_angelo.log

from model-angelo.

jamaliki avatar jamaliki commented on June 27, 2024

Let me know if you have any more issues!

from model-angelo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.