Instructions to use Luzira/sdluz with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Luzira/sdluz with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Luzira/sdluz:Q4_K_M # Run inference directly in the terminal: llama cli -hf Luzira/sdluz:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Luzira/sdluz:Q4_K_M # Run inference directly in the terminal: llama cli -hf Luzira/sdluz:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Luzira/sdluz:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Luzira/sdluz:Q4_K_M
Use Docker
docker model run hf.co/Luzira/sdluz:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use Luzira/sdluz with Ollama:
ollama run hf.co/Luzira/sdluz:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Luzira/sdluz with Docker Model Runner:
docker model run hf.co/Luzira/sdluz:Q4_K_M
- Lemonade
How to use Luzira/sdluz with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Luzira/sdluz:Q4_K_M
Run and chat with the model
lemonade run user.sdluz-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download custom_nodes/ComfyUI-Crystools/web/progressBarUI.ts from Luzira/sdluz: direct link, hf CLI and curl.
- Browser
- Download file 3.34 kB
-
https://huggingface.co/Luzira/sdluz/resolve/main/custom_nodes/ComfyUI-Crystools/web/progressBarUI.ts
- Command line
-
hf download hf://Luzira/sdluz/custom_nodes/ComfyUI-Crystools/web/progressBarUI.ts
-
curl -L -o progressBarUI.ts https://huggingface.co/Luzira/sdluz/resolve/main/custom_nodes/ComfyUI-Crystools/web/progressBarUI.ts
3.34 kB
| import { EStatus, ProgressBarUIBase } from './progressBarUIBase.js'; | |
| export class ProgressBarUI extends ProgressBarUIBase { | |
| htmlProgressSliderRef: HTMLDivElement; | |
| htmlProgressLabelRef: HTMLDivElement; | |
| currentStatus: EStatus; | |
| timeStart: number; | |
| currentProgress: number; | |
| showProgressBarFlag: boolean; | |
| constructor( | |
| public override rootElement: HTMLElement, | |
| public showSectionFlag: boolean, | |
| private centerNode: () => void, | |
| ) { | |
| super('crystools-progressBar-root', rootElement); | |
| this.createDOM(); | |
| } | |
| createDOM = (): void => { | |
| this.rootElement.setAttribute('title', 'click to see the current working node'); | |
| this.rootElement.addEventListener('click', this.centerNode); | |
| const progressBar = document.createElement('div'); | |
| progressBar.classList.add('crystools-progress-bar'); | |
| this.rootElement.append(progressBar); | |
| const progressSlider = document.createElement('div'); | |
| this.htmlProgressSliderRef = progressSlider; | |
| progressSlider.classList.add('crystools-slider'); | |
| progressBar.append(this.htmlProgressSliderRef); | |
| const progressLabel = document.createElement('div'); | |
| progressLabel.classList.add('crystools-label'); | |
| progressLabel.innerHTML = '0%'; | |
| this.htmlProgressLabelRef = progressLabel; | |
| progressBar.append(this.htmlProgressLabelRef); | |
| }; | |
| // eslint-disable-next-line complexity | |
| updateDisplay = (currentStatus: EStatus, timeStart: number, currentProgress: number): void => { | |
| if (!(this.showSectionFlag && this.showProgressBarFlag)) { | |
| return; | |
| } | |
| if (!(this.htmlProgressLabelRef && this.htmlProgressSliderRef)) { | |
| console.error('htmlProgressLabelRef or htmlProgressSliderRef is undefined'); | |
| return; | |
| } | |
| // console.log('only if showSection and progressBar', timeStart, currentProgress); | |
| this.currentStatus = currentStatus; | |
| this.timeStart = timeStart; | |
| this.currentProgress = currentProgress; | |
| if (currentStatus === EStatus.executed) { | |
| // finished | |
| this.htmlProgressLabelRef.innerHTML = 'cached'; | |
| const timeElapsed = Date.now() - timeStart; | |
| if (timeStart > 0 && timeElapsed > 0) { | |
| this.htmlProgressLabelRef.innerHTML = new Date(timeElapsed).toISOString().substr(11, 8); | |
| } | |
| this.htmlProgressSliderRef.style.width = '0'; | |
| } else if (currentStatus === EStatus.execution_error) { | |
| // an error occurred | |
| this.htmlProgressLabelRef.innerHTML = 'ERROR'; | |
| this.htmlProgressSliderRef.style.backgroundColor = 'var(--error-text)'; | |
| } else if (currentStatus === EStatus.executing) { | |
| // on going | |
| this.htmlProgressLabelRef.innerHTML = `${currentProgress}%`; | |
| this.htmlProgressSliderRef.style.width = this.htmlProgressLabelRef.innerHTML; | |
| this.htmlProgressSliderRef.style.backgroundColor = 'green'; // by reset the color | |
| } | |
| }; | |
| public showSection = (value: boolean): void => { | |
| this.showSectionFlag = value; | |
| this.displaySection(); | |
| }; | |
| // remember it can't have more parameters because it is used on settings automatically | |
| public showProgressBar = (value: boolean): void => { | |
| this.showProgressBarFlag = value; | |
| this.displaySection(); | |
| }; | |
| private displaySection = (): void => { | |
| this.rootElement.style.display = (this.showSectionFlag && this.showProgressBarFlag) ? 'block' : 'none'; | |
| }; | |
| } | |