Spaces:
Runtime error
Runtime error
Update app.py
Browse files64 unmodified lines656667686970713 unmodified lines75767778798081826 unmodified lines8990919293949564 unmodified linesllm = Llama(model_path=model_path,n_gpu_layers=0, # 0 for CPU executionn_ctx=4096,# Threading optimizationsn_threads=4,3 unmodified lines# ⚡ TURBOQUANT EQUIVALENT SETTINGS:# Quantizing the KV cache to Q4_0 shrinks memory overhead and drastically# reduces RAM bandwidth usage, supercharging CPU generation speeds.type_k=getattr(llama_cpp, "GGML_TYPE_Q4_0", 2),type_v=getattr(llama_cpp, "GGML_TYPE_Q4_0", 2),n_batch=512,n_ubatch=512,6 unmodified linesuse_mmap=True,# FlashAttention removed as requestedflash_attn=True,)print("Server ready!")64 unmodified lines656667686970713 unmodified lines7576777879806 unmodified lines8788899091929364 unmodified linesllm = Llama(model_path=model_path,n_gpu_layers=0, # 0 for CPU executionn_ctx=2048,# Threading optimizationsn_threads=4,3 unmodified lines# ⚡ TURBOQUANT EQUIVALENT SETTINGS:# Quantizing the KV cache to Q4_0 shrinks memory overhead and drastically# reduces RAM bandwidth usage, supercharging CPU generation speeds.n_batch=512,n_ubatch=512,6 unmodified linesuse_mmap=True,# FlashAttention removed as requested)print("Server ready!")
app.py+2-4