LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

Image generation : rpc error: code = Unavailable desc = error reading from server: EOF

Open TiDjY35 opened this issue 4 months ago • 0 comments

LocalAI version: localai-aio-cpu:latest

Environment, CPU architecture, OS, and Version: Docker : Cpu used

Describe the bug

This error when generation image

{"error":{"code":500,"message":"rpc error: code = Unavailable desc = error reading from server: EOF","type":""}}

To Reproduce

Quick start LocalAI and run

curl http://localhost:8080/v1/images/generations -H "Content-Type: application/json" -d '{ "prompt": "floating hair, portrait, ((loli)), ((one girl)), cute face, hidden hands, asymmetrical bangs, beautiful detailed eyes, eye shadow, hair ornament, ribbons, bowties, buttons, pleated skirt, (((masterpiece))), ((best quality)), colorful|((part of the head)), ((((mutated hands and fingers)))), deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, mutated, extra limb, ugly, poorly drawn hands, missing limb, blurry, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, Octane renderer, lowres, bad anatomy, bad hands, text", "size": "256x256" }'

Expected behavior

Logs

Additional context no problem with generation text

curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{ "model": "llama-3.2-1b-instruct-q4_k_m.gguf", "messages": [{"role": "user", "content": "Say this is a test!"}], "temperature": 0.7 }'

{"created":1729445382,"object":"chat.completion","id":"e660dac5-0e66-4c58-8060-e85b1a5bf30f","model":"llama-3.2-1b-instruct-q4_k_m.gguf","choices":[{"index":0,"finish_reason":"stop","message":{"role":"assistant","content":"\n\nIt's just a text!"}}],"usage":{"prompt_tokens":17,"completion_tokens":8,"total_tokens":25}}

My CPU FLAGS

fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq vmx ssse3 fma cx16 pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm cpuid_fault pti ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt arat vnmi umip md_clear arch_capabilities

Thank you for our help

TiDjY35 avatar Oct 20 '24 18:10 TiDjY35