Skip to content

Segmentation fault (core dumped) - 0.2.58 #1319

Closed
@anakin87

Description

@anakin87

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest code. Development is very rapid so there are no tagged versions as of now.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new bug or useful enhancement to share.

Expected Behavior

I'm trying to create a completion using a GGUF model

Current Behavior

from llama_cpp import Llama

model = Llama(model_path="./tests/models/openchat-3.5-1210.Q3_K_S.gguf",  n_ctx=128, n_batch=128)

questions_and_answers = [
    ("What's the capital of France?", "Paris"),
    ("What is the capital of Canada?", "Ottawa"),
    ("What is the capital of Ghana?", "Accra"),
]

for i, (question, answer) in enumerate(questions_and_answers):
    prompt = f"GPT4 Correct User: Answer in a single word. {question} <|end_of_turn|>\n GPT4 Correct Assistant:"
    result = model.create_completion(prompt=prompt)

    print(i)
    print(result)

Segmentation fault (core dumped) on 0.2.58
(works well on 0.2.57)

Environment and Context

Failure Information (for bugs)

Segmentation fault (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions