Spaces:
Runtime error
Runtime error
| from bot.model.base_model import ModelSettings | |
| class OpenChat35Settings(ModelSettings): | |
| url = "https://huggingface.co/TheBloke/openchat-3.5-0106-GGUF/resolve/main/openchat-3.5-0106.Q4_K_M.gguf" | |
| file_name = "openchat-3.5-0106.Q4_K_M.gguf" | |
| config = { | |
| "n_ctx": 4096, # The max sequence length to use - note that longer sequence lengths require much more resources | |
| "n_threads": 8, # The number of CPU threads to use, tailor to your system and the resulting performance | |
| "n_gpu_layers": 50, # The number of layers to offload to GPU, if you have GPU acceleration available | |
| } | |
| config_answer = {"temperature": 0.7, "stop": []} | |
| class OpenChat36Settings(ModelSettings): | |
| url = "https://huggingface.co/bartowski/openchat-3.6-8b-20240522-GGUF/resolve/main/openchat-3.6-8b-20240522-Q4_K_M.gguf" | |
| file_name = "openchat-3.6-8b-20240522-Q4_K_M.gguf" | |
| config = { | |
| "n_ctx": 4096, # The max sequence length to use - note that longer sequence lengths require much more resources | |
| "n_threads": 8, # The number of CPU threads to use, tailor to your system and the resulting performance | |
| "n_gpu_layers": 50, # The number of layers to offload to GPU, if you have GPU acceleration available | |
| "flash_attn": False, # Use flash attention. | |
| } | |
| config_answer = {"temperature": 0.7, "stop": []} | |