From 9530d3a6d8ad24d68bf35fcf396a8c9edeeb6df3 Mon Sep 17 00:00:00 2001 From: oobabooga Date: Sun, 21 Dec 2025 15:30:54 -0300 Subject: [PATCH 1/4] UI: Improve hr (horizontal separator) style --- css/html_instruct_style.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/css/html_instruct_style.css b/css/html_instruct_style.css index 6dee0a89..5a0338a5 100644 --- a/css/html_instruct_style.css +++ b/css/html_instruct_style.css @@ -27,6 +27,10 @@ border-color: #ffffff75 !important; } +.dark .prose hr { + border-color: #ffffff75 !important; +} + .chat .message-body :is(p, ul, ol) { margin: 1.25em 0 !important; } From 1066fe8c2110a8a366c7bdf945f0489bd8d1b113 Mon Sep 17 00:00:00 2001 From: oobabooga Date: Sun, 21 Dec 2025 15:32:02 -0300 Subject: [PATCH 2/4] UI: Improve table styles (more minimalistic) --- css/main.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/css/main.css b/css/main.css index e7586960..376cfa6d 100644 --- a/css/main.css +++ b/css/main.css @@ -1797,3 +1797,20 @@ button#swap-height-width { top: 0; left: calc(100% - 174px); } + +table { + border-collapse: collapse; +} + +table, tr, td, th, thead { + border: 0; +} + +td + td, +th + th { border-left: 1px solid; } + +tr + tr td, +tr + tr th { border-top: 1px solid; } + +thead + tbody tr:first-child td, +thead + tbody tr:first-child th { border-top: 1px solid; } From a2ed640aa6271251520acbe4831fd860f5f44f1c Mon Sep 17 00:00:00 2001 From: oobabooga Date: Sun, 21 Dec 2025 15:38:48 -0300 Subject: [PATCH 3/4] UI: Improved border color for tables + hr --- css/html_instruct_style.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/css/html_instruct_style.css b/css/html_instruct_style.css index 5a0338a5..a7532cf6 100644 --- a/css/html_instruct_style.css +++ b/css/html_instruct_style.css @@ -19,16 +19,14 @@ color: #d1d5db !important; } -.chat .message-body :is(th, td) { +.chat .message-body :is(th, td), +.prose hr { border-color: #40404096 !important; } -.dark .chat .message-body :is(th, td) { - border-color: #ffffff75 !important; -} - +.dark .chat .message-body :is(th, td), .dark .prose hr { - border-color: #ffffff75 !important; + border-color: rgba(255, 255, 255, 0.3) !important; } .chat .message-body :is(p, ul, ol) { From 6e2c4e9c23fbeb71fbbf4b97be6968351cd9ab7d Mon Sep 17 00:00:00 2001 From: Sergey 'Jin' Bostandzhyan Date: Tue, 6 Jan 2026 15:31:10 +0100 Subject: [PATCH 4/4] Fix loading models which have their eos token disabled (#7363) --- modules/models_settings.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/models_settings.py b/modules/models_settings.py index e9f19a06..15ff2830 100644 --- a/modules/models_settings.py +++ b/modules/models_settings.py @@ -83,7 +83,11 @@ def get_model_metadata(model): if 'tokenizer.chat_template' in metadata: template = metadata['tokenizer.chat_template'] - eos_token = metadata['tokenizer.ggml.tokens'][metadata['tokenizer.ggml.eos_token_id']] + if 'tokenizer.ggml.eos_token_id' in metadata: + eos_token = metadata['tokenizer.ggml.tokens'][metadata['tokenizer.ggml.eos_token_id']] + else: + eos_token = "" + if 'tokenizer.ggml.bos_token_id' in metadata: bos_token = metadata['tokenizer.ggml.tokens'][metadata['tokenizer.ggml.bos_token_id']] else: