In-For-Disaster-Analytics / LLMRepository-Docker

0 stars 1 forks source link

model chooser dropdown box not working/appearing #49

Closed kathgraves closed 5 months ago

kathgraves commented 7 months ago

chooser = model_chooser() does not return a drop-down box to select llm after importing model_chooser successfully in the cell above

mosoriob commented 5 months ago

Notes:

Version: https://github.com/In-For-Disaster-Analytics/sites-and-stories-nlp/commit/71900b39cb25e82fbc7ab875819a2468471ac69b

Conda packages related

**Apptainer> conda list  | grep widgets
ipywidgets                8.1.2              pyhd8ed1ab_1    conda-forge
jupyterlab_widgets        3.0.10             pyhd8ed1ab_0    conda-forge
widgetsnbextension        4.0.10             pyhd8ed1ab_0    conda-forge

Lab extension

Apptainer> jupyter-labextension list
`sys_prefix` level settings are read-only, using `user` level for migration to `lockedExtensions`
JupyterLab v4.2.0
/usr/local/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)

Result

image

mosoriob commented 5 months ago

LLama Index Environment (LoneStar 6) Development - 0.1.1-Pre3 Docker Image: docker://ghcr.io/in-for-disaster-analytics/tap_llmrepository-docker:sha-22610d0 Cookbook: https://github.com/In-For-Disaster-Analytics/sites-and-stories-nlp/commit/71900b39cb25e82fbc7ab875819a2468471ac69b

Apptainer> cd /scratch/07025/mosorio/tapis/28c40717-0bf5-4f72-bc7c-246b54da9368-007^C
Apptainer> conda list | grep widgets
ipywidgets                8.1.2              pyhd8ed1ab_1    conda-forge
jupyterlab_widgets        3.0.10             pyhd8ed1ab_0    conda-forge
widgetsnbextension        4.0.10             pyhd8ed1ab_0    conda-forge
Apptainer> pip list | grep widget
ipywidgets                               8.1.2
jupyterlab_widgets                       3.0.10
widgetsnbextension                       4.0.10
Apptainer> jupyter-labextension list
`sys_prefix` level settings are read-only, using `user` level for migration to `lockedExtensions`
JupyterLab v4.2.0
/usr/local/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)

Apptainer> 
mosoriob commented 5 months ago

LLama Index Environment (LoneStar 6) Development - 0.1.1-Pre3 Docker Image: docker://ghcr.io/in-for-disaster-analytics/tap_llmrepository-docker:sha-22610d0 Cookbook: https://github.com/mosoriob/basic-jupyterlab/commit/6add8dbee4d500e7ca63ce3d58124eb64a42b66d

Apptainer> conda list | grep widgets
ipywidgets                8.1.2              pyhd8ed1ab_1    conda-forge
jupyterlab_widgets        3.0.10             pyhd8ed1ab_0    conda-forge
widgetsnbextension        4.0.10             pyhd8ed1ab_0    conda-forge
Apptainer> pip list | grep widget
ipywidgets                8.1.2
jupyterlab_widgets        3.0.10
widgetsnbextension        4.0.10
Apptainer> jupyter-labextension list
JupyterLab v4.2.1
/work/07025/mosorio/ls6/miniconda3/envs/llm/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        @jupyter-widgets/jupyterlab-manager v5.0.10 enabled OK (python, jupyterlab_widgets)

Apptainer> 

image

What is the different?

https://github.com/mosoriob/basic-jupyterlab/commit/6add8dbee4d500e7ca63ce3d58124eb64a42b66d

mosoriob commented 5 months ago

LLama Index Environment (LoneStar 6) Development - 0.1.1-Pre3 Docker Image: docker://ghcr.io/in-for-disaster-analytics/tap_llmrepository-docker:sha-22610d0 Cookbook: https://github.com/mosoriob/basic-jupyterlab/commit/6add8dbee4d500e7ca63ce3d58124eb64a42b66d

Apptainer> conda list | grep widgets
ipywidgets                8.1.2              pyhd8ed1ab_1    conda-forge
jupyterlab_widgets        3.0.10             pyhd8ed1ab_0    conda-forge
widgetsnbextension        4.0.10             pyhd8ed1ab_0    conda-forge
Apptainer> pip list | grep widget
ipywidgets                8.1.2
jupyterlab_widgets        3.0.10
widgetsnbextension        4.0.10
Apptainer> jupyter-labextension list
JupyterLab v4.2.1
/work/07025/mosorio/ls6/miniconda3/envs/llm/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        @jupyter-widgets/jupyterlab-manager v5.0.10 enabled OK (python, jupyterlab_widgets)

Apptainer> pip list

image

What is the different?

https://github.com/mosoriob/basic-jupyterlab/commit/6add8dbee4d500e7ca63ce3d58124eb64a42b66d

mosoriob commented 5 months ago

LLama Index Environment (LoneStar 6) Development - 0.1.1-Pre3 Docker Image: docker://ghcr.io/in-for-disaster-analytics/tap_llmrepository-docker:sha-22610d0 Cookbook: https://github.com/mosoriob/basic-jupyterlab/commit/ada2d42f885f12202662f003706cdcda5c3849c7

Apptainer> conda list | grep widgets
ipywidgets                8.1.2              pyhd8ed1ab_1    conda-forge
jupyterlab_widgets        3.0.10             pyhd8ed1ab_0    conda-forge
widgetsnbextension        4.0.10             pyhd8ed1ab_0    conda-forge
Apptainer> pip list | grep widget
ipywidgets                8.1.2
jupyterlab_widgets        3.0.10
widgetsnbextension        4.0.10
Apptainer> jupyter-labextension list
JupyterLab v4.2.1
/work/07025/mosorio/ls6/miniconda3/envs/llm/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        @jupyter-widgets/jupyterlab-manager v5.0.10 enabled OK (python, jupyterlab_widgets)

Apptainer> 

image

What is the different?

mosoriob commented 5 months ago

LLama Index Environment (LoneStar 6) Development - 0.1.1-Pre3 Docker Image: docker://ghcr.io/in-for-disaster-analytics/tap_llmrepository-docker:sha-22610d0 Cookbook: https://github.com/mosoriob/basic-jupyterlab/commit/6b07a392b0bc71c3865569f329428b67a1e9eaf0

Apptainer> conda list | grep widgets
ipywidgets                8.1.2              pyhd8ed1ab_1    conda-forge
jupyterlab_widgets        3.0.10             pyhd8ed1ab_0    conda-forge
widgetsnbextension        4.0.10             pyhd8ed1ab_0    conda-forge
Apptainer> pip list | grep widget
ipywidgets         8.1.2
jupyterlab_widgets 3.0.10
widgetsnbextension 4.0.10
Apptainer> jupyter-labextension list
`sys_prefix` level settings are read-only, using `user` level for migration to `lockedExtensions`
JupyterLab v4.2.0
/usr/local/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)

Apptainer> 

image

What is different?

mosoriob commented 5 months ago

The main difference is the path where the extensions are installed

Working: /work/07025/mosorio/ls6/miniconda3/envs/llm/share/jupyter/labextensions Not working: /usr/local/share/jupyter/labextensions

Why?

Working: jupyter-lab is installed by the user using environment.yaml Not working jupyter-lab is installed by the Docker image

Next steps

Remove packages installed by pip.

We recommend that you: Use pip only after conda Install as many requirements as possible with conda then use pip.

# Install jupyterlab and ML packages using host cache
RUN pip install  --no-cache-dir\
    jupyterlab \
    tensorflow[and-cuda] \
    torch
mosoriob commented 5 months ago

Fixed

Release v0.1.1 Please select update the conda environment to ensure dependencies are up-to-date.

wmobley commented 5 months ago

image I had Katherine run the image. It worked for me today. but does not work for her. See the Image.

mosoriob commented 5 months ago

Please share the job details

image

kathgraves commented 5 months ago

I updated both the conda environment and the cookbook, and every time I tried to run the cookbook, it would fail at the last second and I would receive the "Failure" message. The request would submit, process, be "Running", and then it would fail before I could open it.

On Fri, May 24, 2024 at 5:27 PM Maximiliano Osorio @.***> wrote:

Please share the job details

image.png (view on web) https://github.com/In-For-Disaster-Analytics/LLMRepository-Docker/assets/2365990/56a99022-7daf-4839-a4ea-4cf02e9a109a

— Reply to this email directly, view it on GitHub https://github.com/In-For-Disaster-Analytics/LLMRepository-Docker/issues/49#issuecomment-2130446418, or unsubscribe https://github.com/notifications/unsubscribe-auth/BG75RE5ZQCTTN5VSUAHEQALZD65E7AVCNFSM6AAAAABFOOPKZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZQGQ2DMNBRHA . You are receiving this because you authored the thread.Message ID: <In-For-Disaster-Analytics/LLMRepository-Docker/issues/49/2130446418@ github.com>

mosoriob commented 5 months ago

I have the hypothesis that the version of Miniconda installed in @kathgraves TACC account is more up-to-date than ours. Although I'm not easily certain with the shared data.

I have released a new version. Could you try it?

https://ptdatax.tacc.utexas.edu/workbench/applications/jupyter-lab-llama-ls6?appVersion=0.1.2

Please use the parameter values shown in the screenshot below.

image

kathgraves commented 5 months ago

I am able to get it up and running now! And the drop down model chooser is also working!

Thank you for your help, everything looks good to go for now.

On Tue, May 28, 2024 at 4:41 PM Maximiliano Osorio @.***> wrote:

I have the hypothesis that the version of Miniconda installed in @kathgraves https://github.com/kathgraves TACC account is more up-to-date than ours. Although I'm not easily certain with the shared data.

I have released a new version. Could you try it?

https://ptdatax.tacc.utexas.edu/workbench/applications/jupyter-lab-llama-ls6?appVersion=0.1.2

Please use the parameter values shown in the screenshot below.

image.png (view on web) https://github.com/In-For-Disaster-Analytics/LLMRepository-Docker/assets/2365990/79f619d9-fd3f-41d5-bc5a-8f04fca0b4e4

— Reply to this email directly, view it on GitHub https://github.com/In-For-Disaster-Analytics/LLMRepository-Docker/issues/49#issuecomment-2136155774, or unsubscribe https://github.com/notifications/unsubscribe-auth/BG75REZGYA7OBOW5YJBJRHLZET2YZAVCNFSM6AAAAABFOOPKZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZWGE2TKNZXGQ . You are receiving this because you were mentioned.Message ID: <In-For-Disaster-Analytics/LLMRepository-Docker/issues/49/2136155774@ github.com>