chroma: [Bug]: Illegal instruction (core dumped)
What happened?
We are running the EKS Kubernetes and Worker nodes OS is Bottlerocket and we are using the chromdb package in python3
embeddings = OpenAIEmbeddings(openai_api_key=os.environ[‘OPENAI_API_KEY’]) cdb = Chroma.from_texts( texts = ["hello ", “how to type”], embedding = embeddings, persist_directory = ‘chroma_db’ )
we we run this code it always throws error Illegal instruction (core dumped)
But we tried in normal ec2 instance and docker its working fine. But it fails in kubernetes pods which is running on the Bottle rocket os and Containerd runtime versions
Versions
chroma-3.1.21 Python 3.11.3
Relevant log output
>>> embeddings = OpenAIEmbeddings(openai_api_key=os.environ['OPENAI_API_KEY'])
>>> cdb = Chroma.from_texts(
... texts = ["hello ", "how to type"],
... embedding = embeddings,
... persist_directory = 'chroma_db'
... )
Illegal instruction (core dumped)
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 27 (6 by maintainers)
Simiar problem when running on docker container. Instantiating the client with
chromadb.Client()produce an illegal instruction, depending on where the docker image has been built. lscpu on the build machine (from git action):lscpu on the execution machine (on gcp)
both machines have
avxandavx2In addition, if the docker image is built on the target gcp machine directly, the chromadb client instantiation work.