Upload folder using huggingface_hub
Browse files- Test_RAG.py +1 -1
Test_RAG.py
CHANGED
@@ -310,7 +310,7 @@ llm = HuggingFacePipeline.from_model_id(
|
|
310 |
# # # 同时确保 HuggingFacePipeline 使用的 tokenizer 也设置了 pad_token_id
|
311 |
# llm.pipeline.tokenizer.pad_token_id = tokenizer.pad_token_id
|
312 |
print("test:2+2:")
|
313 |
-
llm.invoke("2 + 2 =")
|
314 |
import re
|
315 |
from typing import List
|
316 |
from langchain.text_splitter import (
|
|
|
310 |
# # # 同时确保 HuggingFacePipeline 使用的 tokenizer 也设置了 pad_token_id
|
311 |
# llm.pipeline.tokenizer.pad_token_id = tokenizer.pad_token_id
|
312 |
print("test:2+2:")
|
313 |
+
print(llm.invoke("2 + 2 ="))
|
314 |
import re
|
315 |
from typing import List
|
316 |
from langchain.text_splitter import (
|