Closed AfamO closed 10 months ago
You can manage the HF login using from huggingface_hub import login
import sys
import os
# Import our client
from llm_vm.client import Client
# Import huggingface hub login
from huggingface_hub import login
# Login with HF API token
login(
os.getenv("LLM_VM_HUGGINGFACEHUB_API_TOKEN")
)
# Instantiate the client specifying which LLM you want to use
client = Client(
big_model='llama2'
)
# Put in to your prompt and go!
response = client.complete(
context='',
prompt = 'What is anarchy?'
)
print(
response, file=sys.stderr
) # Anarchy is a political system in which the state is abolished and the people are free...
It's alright. The above step, along with extra efforts to request for repo access from both Meta and Hugging Face websites, worked
Describe the bug Hugging Face is asking for token to access and run Llam2 model
To Reproduce Steps to reproduce the behavior:
Expected behavior Before invoking the model, Hugging Face expects a token having permission to the repo to be passed either via huggingface-cli login`.
or by passing
token=Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.