Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Error: zsh: bus error guardrails start --config config.py #968

Open
JuanmaMenendez opened this issue Jul 26, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@JuanmaMenendez
Copy link

Describe the bug

In v0.5, when I run a SensitiveTopic validation with disable_llm=true (LLM disabled) and device with the default value of -1

  • In the validation script, I got the error:
    ports/default.py", line 86, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)

  • In the server script I got the error
    INFO:werkzeug:127.0.0.1 - - [26/Jul/2024 12:19:28] "POST /guards/sensitive_topics/openai/v1/chat/completions HTTP/1.1" 200 - zsh: bus error guardrails start --config config.py

NOTE: The validation works as expected if I change device to a positive value like 0. eg: device=0.
I am using an M1 Macbook pro laptop.

This is my server config:

guard.name = 'sensitive_topics'
guard.use(SensitiveTopic(
    sensitive_topics=[
        "Politics",
        "Elections"
    ],
    disable_classifier=False,
    disable_llm=True,
    device=-1,
))

Library version:
Version (0.5)

@JuanmaMenendez JuanmaMenendez added the bug Something isn't working label Jul 26, 2024
@CalebCourier
Copy link
Collaborator

@JuanmaMenendez I'm looking into this issue, but as of now I'm unable to reproduce the error with the example provided. Could you share a more complete code sample and stack trace for the errors you are encountering?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants