Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
Newbie here - trying to install a Alpaca Lora and hitting an error
Post Body

Hi all - relatively new to GitHub / programming in general, and I wanted to try to set up Alpaca Lora locally. Following the guide here: https://github.com/tloen/alpaca-lora

Here's the error I'm receiving - I have installed Python (as well as Typing Extensions) but imagine some other basic setup step is missing? Any help greatly appreciated:

PS C:\Users\Anthony\alpaca-lora> docker run --gpus=all --shm-size 64g -p 7860:7860 -v ${HOME}/.cache:/root/.cache --rm alpaca-lora generate.py --load_8bit --base_model 'decapoda-research/llama-7b-hf' --lora_weights 'tloen/alpaca-lora-7b'

>>

Traceback (most recent call last):

File "/workspace/generate.py", line 5, in <module>

import gradio as gr

File "/usr/local/lib/python3.10/dist-packages/gradio/__init__.py", line 3, in <module>

import gradio.components as components

File "/usr/local/lib/python3.10/dist-packages/gradio/components/__init__.py", line 1, in <module>

from gradio.components.annotated_image import AnnotatedImage

File "/usr/local/lib/python3.10/dist-packages/gradio/components/annotated_image.py", line 13, in <module>

from gradio.components.base import IOComponent, _Keywords

File "/usr/local/lib/python3.10/dist-packages/gradio/components/base.py", line 20, in <module>

from fastapi import UploadFile

File "/usr/local/lib/python3.10/dist-packages/fastapi/__init__.py", line 7, in <module>

from .applications import FastAPI as FastAPI

File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 16, in <module>

from fastapi import routing

File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 22, in <module>

from fastapi import params

File "/usr/local/lib/python3.10/dist-packages/fastapi/params.py", line 6, in <module>

from typing_extensions import Annotated, deprecated

ImportError: cannot import name 'deprecated' from 'typing_extensions' (/usr/local/lib/python3.10/dist-packages/typing_extensions.py)

Author
Account Strength
60%
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
156
Link Karma
57
Comment Karma
99
Profile updated: 5 days ago
Posts updated: 5 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago