:robot: The free, Open Source alternative to OpenAI, Claude and others. Self-hosted and local-first. Drop-in replacement for OpenAI, running on consumer-grade hardware. No GPU required. Runs gguf, transformers, diffusers and many more models architectures. Features: Generate Text, Audio, Video, Images, Voice Cloning, Distributed inference
@@@@@
Skipping rebuild
@@@@@
If you are experiencing issues with the pre-compiled builds, try setting REBUILD=true
If you are still experiencing issues with the build, try setting CMAKE_ARGS and disable the instructions set as needed:
CMAKE_ARGS="-DLLAMA_F16C=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF"
see the documentation at: https://localai.io/basics/build/index.html
Note: See also https://github.com/go-skynet/LocalAI/issues/288
@@@@@
CPU info:
model name : Intel(R) Xeon(R) CPU E5-2678 v3 @ 2.50GHz
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts md_clear flush_l1d
CPU: AVX found OK
CPU: AVX2 found OK
CPU: no AVX512 found
@@@@@
5:56PM DBG no galleries to load
5:56PM INF Starting LocalAI using 4 threads, with models path: /models
5:56PM INF LocalAI version: v2.9.0 (ff88c390bb51d9567572815a63c575eb2e3dd062)
5:56PM INF Preloading models from /models
┌───────────────────────────────────────────────────┐
│ Fiber v2.50.0 │
│ http://127.0.0.1:8080 │
│ (bound on host 0.0.0.0 and port 8080) │
│ │
│ Handlers ........... 105 Processes ........... 1 │
│ Prefork ....... Disabled PID ................ 14 │
└───────────────────────────────────────────────────┘
5:57PM INF Trying to load the model 'gemma-7b.gguf' with all the available backends: llama-cpp, llama-ggml, llama, gpt4all, bert-embeddings, rwkv, whisper, stablediffusion, tinydream, piper, /build/backend/python/sentencetransformers/run.sh, /build/backend/python/transformers-musicgen/run.sh, /build/backend/python/autogptq/run.sh, /build/backend/python/diffusers/run.sh, /build/backend/python/transformers/run.sh, /build/backend/python/exllama2/run.sh, /build/backend/python/exllama/run.sh, /build/backend/python/mamba/run.sh, /build/backend/python/petals/run.sh, /build/backend/python/vall-e-x/run.sh, /build/backend/python/sentencetransformers/run.sh, /build/backend/python/coqui/run.sh, /build/backend/python/vllm/run.sh, /build/backend/python/bark/run.sh
5:57PM INF [llama-cpp] Attempting to load
5:57PM INF Loading model 'gemma-7b.gguf' with backend llama-cpp
5:57PM INF [llama-cpp] Fails: could not load model: rpc error: code = Unavailable desc = error reading from server: EOF
5:57PM INF [llama-ggml] Attempting to load
5:57PM INF Loading model 'gemma-7b.gguf' with backend llama-ggml
5:57PM INF [llama-ggml] Fails: could not load model: rpc error: code = Unknown desc = failed loading model
5:57PM INF [llama] Attempting to load
5:57PM INF Loading model 'gemma-7b.gguf' with backend llama
5:57PM INF [llama] Fails: could not load model: rpc error: code = Unavailable desc = error reading from server: EOF
5:57PM INF [gpt4all] Attempting to load
5:57PM INF Loading model 'gemma-7b.gguf' with backend gpt4all
5:57PM INF [gpt4all] Fails: could not load model: rpc error: code = Unknown desc = failed loading model
5:57PM INF [bert-embeddings] Attempting to load
5:57PM INF Loading model 'gemma-7b.gguf' with backend bert-embeddings
5:57PM INF [bert-embeddings] Fails: could not load model: rpc error: code = Unknown desc = failed loading model
5:57PM INF [rwkv] Attempting to load
5:57PM INF Loading model 'gemma-7b.gguf' with backend rwkv
5:57PM INF [rwkv] Fails: could not load model: rpc error: code = Unavailable desc = error reading from server: EOF
5:57PM INF [whisper] Attempting to load
5:57PM INF Loading model 'gemma-7b.gguf' with backend whisper
5:57PM INF [whisper] Fails: could not load model: rpc error: code = Unknown desc = unable to load model
5:57PM INF [stablediffusion] Attempting to load
5:57PM INF Loading model 'gemma-7b.gguf' with backend stablediffusion
5:57PM INF [stablediffusion] Loads OK
Additional context
IDK how much memory/cpu resources is required, but if I don't set the pod cpu/memory limit local-ai will use up all the memory and make this machine hang up in first request.
LocalAI version:
Environment, CPU architecture, OS, and Version:
Linux node1 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug
Expected behavior
Get a code 200 HTTP response.
Logs
Additional context
IDK how much memory/cpu resources is required, but if I don't set the pod cpu/memory limit local-ai will use up all the memory and make this machine hang up in first request.