Skip to content

LocalAI v2.28 does not use the ENV file in docker. #5280

@michieal

Description

@michieal

LocalAI version:

2:47AM INF LocalAI version: v2.28.0 (56f44d4)
Docker, Radeon passed through. HipBlas/ROCm. Quay latest. as of ~ a week or so ago.

Environment, CPU architecture, OS, and Version:

Describe the bug

LocalAI seems to ignore the ENV settings. In this case it ignores the log level. (it ignores other ones too... I can put them in the comments or make separate issues for them.)

ENV file:

Enable debug mode

LOCALAI_LOG_LEVEL=info

DEBUG OUTPUT:
2:47AM DBG [startup] resolved local model: /aio/gpu-8g/embeddings.yaml
2:47AM DBG [startup] resolved local model: /aio/gpu-8g/rerank.yaml
2:47AM DBG [startup] resolved local model: /aio/gpu-8g/text-to-speech.yaml
2:47AM DBG [startup] resolved local model: /aio/gpu-8g/image-gen.yaml
2:47AM DBG [startup] resolved local model: /aio/gpu-8g/text-to-text.yaml
2:47AM DBG [startup] resolved local model: /aio/gpu-8g/speech-to-text.yaml
2:47AM DBG [startup] resolved local model: /aio/gpu-8g/vad.yaml
2:47AM DBG [startup] resolved local model: /aio/gpu-8g/vision.yaml
2:47AM DBG Model file loaded: granite-embedding-107m-multilingual-f16.gguf architecture=bert bosTokenID=0 eosTokenID=2 modelName="Granite Embedding 107m Multilingual"
2:47AM DBG guessDefaultsFromFile: family not identified
...

To Reproduce

I guess install the hipblas all in one container. try setting up an env file.

Expected behavior

I expect that LocalAI adheres to its documentation and to use the env file like it did last version. Not sure what changed, but I would think that if it was working (in v2.27), then it shouldn't be that difficult.

Logs

@@@@@
CPU info:
model name : QEMU Virtual CPU version 2.5+
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc nopl xtopology cpuid tsc_known_freq pni ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c hypervisor lahf_lm abm cpuid_fault pti bmi1 avx2 bmi2
CPU: AVX found OK
CPU: AVX2 found OK
CPU: no AVX512 found
@@@@@
2:47AM INF env file found, loading environment variables from file envFile=.env
2:47AM DBG Setting logging to debug
2:47AM INF Starting LocalAI using 32 threads, with models path: /build/models
2:47AM INF LocalAI version: v2.28.0 (56f44d4)

Additional context

Additional context: I am sick and tired of fighting with it to the point that I barely have the energy to make a freaking issue. I took a minute to look at the issues... and it seems like when one makes an issue, they are shouting into the void. Not... a good look.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions