ctransformers icon indicating copy to clipboard operation
ctransformers copied to clipboard

core dumped / segmentation fault

Open lysa324 opened this issue 2 years ago • 1 comments

Hi, I use debian 11, python 3.10, anaconda3 langchain==0.0.240 RAM = 16 Go swap = 10 Go SSD = 60 GO I try to use the simplest program with Ctransfors:

from langchain.llms import CTransformers
from langchain.chains import LLMChain
from langchain import PromptTemplate

prompt_template = """
You are an AI coding assistant and your task to solve the coding problems, and return coding snippets based on the
Query: {query}

You just return helpful answer and nothing else
Helpful Answer: 
"""

prompt = PromptTemplate(template=prompt_template, input_variables=['query'])


llm = CTransformers(model = "model/codellama-7b-instruct.ggmlv3.Q4_0.bin",
                    model_type = "llama",
                    max_new_tokens=512,
                    temperature=0.2
                    )

llm_chain = LLMChain(prompt=prompt, llm=llm)


llm_response = llm_chain.run({"query": "Write a python code to load a CSV file using pandas library"})

print(llm_response)

and i have "core dumped " error without other details, i tried a lot of things but nothig resolve my problem !

can you help me please thks

lysa324 avatar Nov 03 '23 12:11 lysa324

Same issue, someone please help. It's also happening with pure cTransformers with .gguf models.

dipeshpaulsystango avatar Apr 01 '24 13:04 dipeshpaulsystango