mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-04 04:04:44 -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",
|
"name": "friendly-kobold",
|
||||||
"productName": "Friendly Kobold",
|
"productName": "Friendly Kobold",
|
||||||
"version": "0.6.3",
|
"version": "0.6.4",
|
||||||
"description": "A desktop app for running Large Language Models locally",
|
"description": "A desktop app for running Large Language Models locally",
|
||||||
"main": "out/main/index.js",
|
"main": "out/main/index.js",
|
||||||
"homepage": "./",
|
"homepage": "./",
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ export const TerminalTab = ({ onServerReady }: TerminalTabProps) => {
|
||||||
allowTransparency: false,
|
allowTransparency: false,
|
||||||
scrollback: 10000,
|
scrollback: 10000,
|
||||||
convertEol: true,
|
convertEol: true,
|
||||||
|
smoothScrollDuration: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
const fitAddon = new FitAddon();
|
const fitAddon = new FitAddon();
|
||||||
|
|
@ -128,12 +129,7 @@ export const TerminalTab = ({ onServerReady }: TerminalTabProps) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
xtermRef.current.write(newData);
|
xtermRef.current.write(newData);
|
||||||
|
xtermRef.current.scrollToBottom();
|
||||||
setTimeout(() => {
|
|
||||||
if (xtermRef.current) {
|
|
||||||
xtermRef.current.scrollToBottom();
|
|
||||||
}
|
|
||||||
}, 0);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return cleanup;
|
return cleanup;
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ export const BackendSelector = ({
|
||||||
<Text size="sm" fw={500}>
|
<Text size="sm" fw={500}>
|
||||||
Backend
|
Backend
|
||||||
</Text>
|
</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>
|
</Group>
|
||||||
<Select
|
<Select
|
||||||
placeholder="Select backend"
|
placeholder="Select backend"
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,5 @@
|
||||||
@import '@mantine/core/styles.css';
|
@import '@mantine/core/styles.css';
|
||||||
|
|
||||||
/* Global smooth scrolling */
|
|
||||||
* {
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Custom scrollbars */
|
/* Custom scrollbars */
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
|
|
|
||||||
|
|
@ -25,28 +25,37 @@ export const checkBackendWarnings = async (
|
||||||
const warnings: BackendWarning[] = [];
|
const warnings: BackendWarning[] = [];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const [backendSupport, gpuCapabilities] = await Promise.all([
|
const [backendSupport, gpuCapabilities, gpuInfo] = await Promise.all([
|
||||||
window.electronAPI.kobold.detectBackendSupport(),
|
window.electronAPI.kobold.detectBackendSupport(),
|
||||||
window.electronAPI.kobold.detectGPUCapabilities(),
|
window.electronAPI.kobold.detectGPUCapabilities(),
|
||||||
|
window.electronAPI.kobold.detectGPU(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (!backendSupport) {
|
if (!backendSupport) {
|
||||||
return warnings;
|
return warnings;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (backendSupport.cuda && !gpuCapabilities.cuda.supported) {
|
if (
|
||||||
|
backendSupport.cuda &&
|
||||||
|
!gpuCapabilities.cuda.supported &&
|
||||||
|
gpuInfo.hasNVIDIA
|
||||||
|
) {
|
||||||
warnings.push({
|
warnings.push({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message:
|
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({
|
warnings.push({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message:
|
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