CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 09:40:51 GMT
content-type: text/html; charset=utf-8
cache-control: max-age=0, private, must-revalidate
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
link: ; rel=preload; as=fetch; crossorigin=use-credentials
referrer-policy: no-referrer-when-downgrade
server-timing: issue_layout-fragment;desc="issue_layout fragment";dur=302.933811,issue_conversation_content-fragment;desc="issue_conversation_content fragment";dur=582.808849,issue_conversation_sidebar-fragment;desc="issue_conversation_sidebar fragment";dur=43.596866,nginx;desc="NGINX";dur=1.035176,glb;desc="GLB";dur=95.495229
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Accept,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: fd8fbbc
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=42kKtpkyTvF%2BNa4DRKB7MY83qMZqF7aY%2F4qomZy99yyQJAJQ%2F7%2FBo1kQ1jDF%2FaSCWyFKsHsxggdGlOEMAu3UylJs5LtzUogh0t3KGHzXzG%2FktxE%2FkY%2BN%2FWp6NfrVdmI2uYHwYeLrtfPIjXHVJUhxKcpo8Xb%2BSA7K4B3PLSe7RaIUZVC2A060EsDjCGy3Z8AQ2rv5MWJGVwfif2fXK3CNj2geV9NZdg8S67iomjzcVEyPEp8g4aP%2Bv3qObMHzZBC0CckeLJ7YCoNgKck6wZ4fVA%3D%3D--ToqGOoi%2BdTEDviUS--G3G7uo%2BUa5HzLWAqJBMPvg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1568192007.1752918050; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 09:40:50 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 09:40:50 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E19A:26CB0:5E4A9F:7D55E2:687B6822
Here is a script to automate the build on Windows Β· Issue #664 Β· LostRuins/koboldcpp Β· GitHub
No one assignedNo labelsNo projectsNo milestoneNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
forked from ggml-org/llama.cpp
-
Notifications
You must be signed in to change notification settings - Fork 490
Closed
Description
Setup
- Create a folder called
KoboldCpp
. - Download and extract KoboldCpp inside that folder and rename it to
koboldcpp
. Or open the CMD inside that folder and use this commandgit clone https://github.com/LostRuins/koboldcpp.git
. You must have Git for Windows installed for this. - Install the Python with
Add python.exe to PATH
orAdd Python to environment variables
checked. - Install the Visual Studio with the
Desktop development with C++
workload. - Install the CUDA Toolkit. If it fails to install, uncheck
CUDA\Visual Studio Integration
and all theCUDA\Nsight *
during the installation. Then open the installation package with 7zip and extract all 4 files that are inside thevisual_studio_integration\CUDAVisualStudioIntegration\extras\visual_studio_integration\MSBuildExtensions
to your Visual StudioMicrosoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations
folder. - Install the latest release of w64devkit and add its path to the Windows' PATH environment variable or to the "make.bat" below like so:
set PATH=c:\path\to\w64devkit\bin;%PATH%
- Create a new file called
make.bat
inside the first "KoboldCpp" folder (not inside the extracted/cloned folder).
make.bat
@echo off
title KoboldCpp
cd /d "%~dp0\koboldcpp"
make -s -j %NUMBER_OF_PROCESSORS% -C .
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_x64
cmake -S . -B build -G "Visual Studio 17 2022" -DCMAKE_C_FLAGS="/utf-8" -DCMAKE_CXX_FLAGS="/utf-8 /EHsc" -DCMAKE_CUDA_FLAGS="--compiler-options=/utf-8" %*
cmake --build build --config Release -j %NUMBER_OF_PROCESSORS%
copy /y "build\bin\Release\koboldcpp_cublas.dll" "koboldcpp_cublas.dll"
if exist "cudart64_12.dll" del /q "cudart64_12.dll"
if exist "cudart64_110.dll" del /q "cudart64_110.dll"
if exist "msvcp140_codecvt_ids.dll" del /q "msvcp140_codecvt_ids.dll"
if exist "msvcp140.dll" del /q "msvcp140.dll"
pause
- Now execute the "make.bat" and wait for it to finish.
- Run KoboldCpp with
py -m koboldcpp
as usual.
Bonus
Run KoboldCpp
Open Kobo's launcher.
koboldcpp.bat
@echo off
cd /d "%~dp0\koboldcpp"
title KoboldCpp
py -m koboldcpp
Help file
You can call Kobo for help!
koboldcpp --help.bat
@echo off
cd /d "%~dp0\koboldcpp"
title KoboldCpp
py -m koboldcpp --help
pause
Cache clean
You can copy the make.bat
and paste as shortcut. Now you can add additional commands to cmake like --fresh
to clean the cmake cache. Open the shortcut properties and add a space followed by --fresh
at the end of the target path.
Make clean
Here is a make clean.bat
to delete all the build files.
make clean.bat
@echo off
cd /d "%~dp0\koboldcpp"
make -s clean
rm -vrf build
Nexesenex and MorivyPhoenixtheII and jojorne
Metadata
Metadata
Assignees
Labels
No labels
Projects
Milestone
Relationships
Development
Issue actions
You canβt perform that action at this time.