Update README.md
Browse files
README.md
CHANGED
@@ -1,21 +1 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
HUGGING_FACE_API_KEY = "<hugging-face-api-key-goes-here>"
|
4 |
-
|
5 |
-
# Replace this if you want to use a different model
|
6 |
-
model_id = "lmsys/fastchat-t5-3b-v1.0"
|
7 |
-
filenames = [
|
8 |
-
"pytorch_model.bin", "added_tokens.json", "config.json", "generation_config.json",
|
9 |
-
"special_tokens_map.json", "spiece.model", "tokenizer_config.json"
|
10 |
-
]
|
11 |
-
|
12 |
-
for filename in filenames:
|
13 |
-
downloaded_model_path = hf_hub_download(
|
14 |
-
repo_id=model_id,
|
15 |
-
filename=filename,
|
16 |
-
token=HUGGING_FACE_API_KEY
|
17 |
-
)
|
18 |
-
|
19 |
-
print(downloaded_model_path)
|
20 |
-
|
21 |
-
print(downloaded_model_path)
|
|
|
1 |
+
pip install 'langchain[llms]' huggingface-hub langchain transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|