You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was able to use llama-cpp-python steadily last week, however, I encountered this segmentation fault error since few days ago. I have tried reinstalled again and also adjusting the n_gpu_layers value, but I still encounter the same issue. I have no idea what is the root cause of this.
Does anyone could kindly help to advice how to solve this? Thank you.
from llama_cpp import Llama
import json
import os
import sys
MODEL_PATH = '/path/to/llama_cpp/vicuna-13b-v1.5-16bit.gguf'
llm = Llama(model_path=MODEL_PATH, n_gpu_layers=10)
STRING_PROMPT = """
### System: You are an AI assistant that follows instructions exceptionally well. Be as helpful as possible.
### User: Briefly list down the steps to perform Cook Bacon.
### Assistant:
"""
def llm_infer(llm, STRING_PROMPT):
return llm(
prompt=STRING_PROMPT,
max_tokens=2048,
echo=False,
seed=1024,
temperature=0.001
)
result = llm_infer(llm, STRING_PROMPT )
print(result['choices'][0]['text'])
The text was updated successfully, but these errors were encountered:
Hi, I was able to use llama-cpp-python steadily last week, however, I encountered this segmentation fault error since few days ago. I have tried reinstalled again and also adjusting the
n_gpu_layers
value, but I still encounter the same issue. I have no idea what is the root cause of this.Does anyone could kindly help to advice how to solve this? Thank you.
full log output as below:
How I install llama-cpp-python:
To reproduce using the same program code:
The text was updated successfully, but these errors were encountered: