abetlen / abetlen/llama-cpp-python

i am trying to include prompt in llm but getting validation error how can i include because i am using pandas dataframe agent it is looping until timelimit

Đang mở
#697 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
10.6k
Fork
1.4k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

llm = LlamaCpp(
model_path=model_path,
max_tokens=1024,
n_gpu_layers=n_gpu_layers,
n_batch=n_batch,
callback_manager=callback_manager,
verbose=True,
n_ctx=4096, # Context window
prompt=pro,
temperature = 0.4,
)
/usr/local/lib/python3.10/dist-packages/langchain/utils/utils.py:155: UserWarning: WARNING! prompt is not default parameter.
prompt was transferred to model_kwargs.
Please confirm that prompt is what you intended.
warnings.warn(
---------------------------------------------------------------------------
ValidationError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
----> 1 llm = LlamaCpp(
2 model_path=model_path,
3 max_tokens=1024,
4 n_gpu_layers=n_gpu_layers,
5 n_batch=n_batch,

1 frames
[/usr/local/lib/python3.10/dist-packages/langchain/load/serializable.py](https://localhost:8080/#) in __init__(self, **kwargs)
73
74 def __init__(self, **kwargs: Any) -> None:
---> 75 super().__init__(**kwargs)
76 self._lc_kwargs = kwargs
77

/usr/local/lib/python3.10/dist-packages/pydantic/main.cpython-310-x86_64-linux-gnu.so in pydantic.main.BaseModel.__init__()

ValidationError: 1 validation error for LlamaCpp
__root__
Could not load Llama model from path: /root/.cache/huggingface/hub/models--TheBloke--Llama-2-13B-chat-GGML/snapshots/a17885f653039bd07ed0f8ff4ecc373abf5425fd/llama-2-13b-chat.ggmlv3.q5_1.bin. Received error Llama.__init__() got an unexpected keyword argument 'prompt' (type=value_error)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.