mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 09:33:10 -07:00
fix new warnings, no more smooth scrolling,
This commit is contained in:
parent
f2a7ce37f2
commit
eef94aea3d
5 changed files with 18 additions and 22 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "friendly-kobold",
|
||||
"productName": "Friendly Kobold",
|
||||
"version": "0.6.3",
|
||||
"version": "0.6.4",
|
||||
"description": "A desktop app for running Large Language Models locally",
|
||||
"main": "out/main/index.js",
|
||||
"homepage": "./",
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ export const TerminalTab = ({ onServerReady }: TerminalTabProps) => {
|
|||
allowTransparency: false,
|
||||
scrollback: 10000,
|
||||
convertEol: true,
|
||||
smoothScrollDuration: 0,
|
||||
});
|
||||
|
||||
const fitAddon = new FitAddon();
|
||||
|
|
@ -128,12 +129,7 @@ export const TerminalTab = ({ onServerReady }: TerminalTabProps) => {
|
|||
}
|
||||
|
||||
xtermRef.current.write(newData);
|
||||
|
||||
setTimeout(() => {
|
||||
if (xtermRef.current) {
|
||||
xtermRef.current.scrollToBottom();
|
||||
}
|
||||
}, 0);
|
||||
xtermRef.current.scrollToBottom();
|
||||
});
|
||||
|
||||
return cleanup;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ export const BackendSelector = ({
|
|||
<Text size="sm" fw={500}>
|
||||
Backend
|
||||
</Text>
|
||||
<InfoTooltip label="Select a backend to use. CUDA runs on NVIDIA GPUs, and is much faster. ROCm is the AMD equivalent. Vulkan and CLBlast works on all GPUs but are somewhat slower." />
|
||||
<InfoTooltip label="Select a backend to use. CUDA runs on NVIDIA GPUs, and is much faster. ROCm is the AMD equivalent. Vulkan and CLBlast work on all GPUs." />
|
||||
</Group>
|
||||
<Select
|
||||
placeholder="Select backend"
|
||||
|
|
|
|||
|
|
@ -1,14 +1,5 @@
|
|||
@import '@mantine/core/styles.css';
|
||||
|
||||
/* Global smooth scrolling */
|
||||
* {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* Custom scrollbars */
|
||||
::-webkit-scrollbar {
|
||||
width: 0.5rem;
|
||||
|
|
|
|||
|
|
@ -25,28 +25,37 @@ export const checkBackendWarnings = async (
|
|||
const warnings: BackendWarning[] = [];
|
||||
|
||||
try {
|
||||
const [backendSupport, gpuCapabilities] = await Promise.all([
|
||||
const [backendSupport, gpuCapabilities, gpuInfo] = await Promise.all([
|
||||
window.electronAPI.kobold.detectBackendSupport(),
|
||||
window.electronAPI.kobold.detectGPUCapabilities(),
|
||||
window.electronAPI.kobold.detectGPU(),
|
||||
]);
|
||||
|
||||
if (!backendSupport) {
|
||||
return warnings;
|
||||
}
|
||||
|
||||
if (backendSupport.cuda && !gpuCapabilities.cuda.supported) {
|
||||
if (
|
||||
backendSupport.cuda &&
|
||||
!gpuCapabilities.cuda.supported &&
|
||||
gpuInfo.hasNVIDIA
|
||||
) {
|
||||
warnings.push({
|
||||
type: 'warning',
|
||||
message:
|
||||
'Your KoboldCpp binary supports CUDA, but CUDA runtime is not detected on your system.',
|
||||
'Your KoboldCpp binary supports CUDA and you have an NVIDIA GPU, but CUDA runtime is not detected on your system.',
|
||||
});
|
||||
}
|
||||
|
||||
if (backendSupport.rocm && !gpuCapabilities.rocm.supported) {
|
||||
if (
|
||||
backendSupport.rocm &&
|
||||
!gpuCapabilities.rocm.supported &&
|
||||
gpuInfo.hasAMD
|
||||
) {
|
||||
warnings.push({
|
||||
type: 'warning',
|
||||
message:
|
||||
'Your KoboldCpp binary supports ROCm, but ROCm runtime is not detected on your system.',
|
||||
'Your KoboldCpp binary supports ROCm and you have an AMD GPU, but ROCm runtime is not detected on your system.',
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue