Instructions to use isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp", filename="Wan2.2-TI2V-5B-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K # Run inference directly in the terminal: llama-cli -hf isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K # Run inference directly in the terminal: llama-cli -hf isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K # Run inference directly in the terminal: ./llama-cli -hf isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K
Use Docker
docker model run hf.co/isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K
- LM Studio
- Jan
- Ollama
How to use isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp with Ollama:
ollama run hf.co/isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K
- Unsloth Studio new
How to use isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp to start chatting
- Docker Model Runner
How to use isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp with Docker Model Runner:
docker model run hf.co/isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K
- Lemonade
How to use isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull isfs/wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp:Q2_K
Run and chat with the model
lemonade run user.wan-2.2-5b-ti2v-gguf-stable-diffusion-cpp-Q2_K
List all available models
lemonade list
File size: 5,879 Bytes
a1663c1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.31
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/local/lib/python3.12/dist-packages/cmake/data/bin/cmake
# The command to remove a file.
RM = /usr/local/lib/python3.12/dist-packages/cmake/data/bin/cmake -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /kaggle/working/stable-diffusion.cpp
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /kaggle/working/stable-diffusion.cpp/build
# Include any dependencies generated for this target.
include examples/cli/CMakeFiles/sd-cli.dir/depend.make
# Include any dependencies generated by the compiler for this target.
include examples/cli/CMakeFiles/sd-cli.dir/compiler_depend.make
# Include the progress variables for this target.
include examples/cli/CMakeFiles/sd-cli.dir/progress.make
# Include the compile flags for this target's objects.
include examples/cli/CMakeFiles/sd-cli.dir/flags.make
examples/cli/CMakeFiles/sd-cli.dir/codegen:
.PHONY : examples/cli/CMakeFiles/sd-cli.dir/codegen
examples/cli/CMakeFiles/sd-cli.dir/main.cpp.o: examples/cli/CMakeFiles/sd-cli.dir/flags.make
examples/cli/CMakeFiles/sd-cli.dir/main.cpp.o: /kaggle/working/stable-diffusion.cpp/examples/cli/main.cpp
examples/cli/CMakeFiles/sd-cli.dir/main.cpp.o: examples/cli/CMakeFiles/sd-cli.dir/compiler_depend.ts
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=/kaggle/working/stable-diffusion.cpp/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object examples/cli/CMakeFiles/sd-cli.dir/main.cpp.o"
cd /kaggle/working/stable-diffusion.cpp/build/examples/cli && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT examples/cli/CMakeFiles/sd-cli.dir/main.cpp.o -MF CMakeFiles/sd-cli.dir/main.cpp.o.d -o CMakeFiles/sd-cli.dir/main.cpp.o -c /kaggle/working/stable-diffusion.cpp/examples/cli/main.cpp
examples/cli/CMakeFiles/sd-cli.dir/main.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing CXX source to CMakeFiles/sd-cli.dir/main.cpp.i"
cd /kaggle/working/stable-diffusion.cpp/build/examples/cli && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /kaggle/working/stable-diffusion.cpp/examples/cli/main.cpp > CMakeFiles/sd-cli.dir/main.cpp.i
examples/cli/CMakeFiles/sd-cli.dir/main.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling CXX source to assembly CMakeFiles/sd-cli.dir/main.cpp.s"
cd /kaggle/working/stable-diffusion.cpp/build/examples/cli && /usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /kaggle/working/stable-diffusion.cpp/examples/cli/main.cpp -o CMakeFiles/sd-cli.dir/main.cpp.s
# Object files for target sd-cli
sd__cli_OBJECTS = \
"CMakeFiles/sd-cli.dir/main.cpp.o"
# External object files for target sd-cli
sd__cli_EXTERNAL_OBJECTS =
bin/sd-cli: examples/cli/CMakeFiles/sd-cli.dir/main.cpp.o
bin/sd-cli: examples/cli/CMakeFiles/sd-cli.dir/build.make
bin/sd-cli: libstable-diffusion.a
bin/sd-cli: ggml/src/libggml.a
bin/sd-cli: ggml/src/libggml-cpu.a
bin/sd-cli: /usr/lib/gcc/x86_64-linux-gnu/11/libgomp.so
bin/sd-cli: /usr/lib/x86_64-linux-gnu/libpthread.a
bin/sd-cli: ggml/src/ggml-cuda/libggml-cuda.a
bin/sd-cli: ggml/src/libggml-base.a
bin/sd-cli: /usr/local/cuda/lib64/libcudart.so
bin/sd-cli: /usr/local/cuda/lib64/libcublas.so
bin/sd-cli: /usr/local/cuda/lib64/libcublasLt.so
bin/sd-cli: /usr/local/cuda/lib64/libculibos.a
bin/sd-cli: /usr/local/nvidia/lib64/libcuda.so
bin/sd-cli: /usr/lib/x86_64-linux-gnu/librt.a
bin/sd-cli: examples/cli/CMakeFiles/sd-cli.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --bold --progress-dir=/kaggle/working/stable-diffusion.cpp/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX executable ../../bin/sd-cli"
cd /kaggle/working/stable-diffusion.cpp/build/examples/cli && $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/sd-cli.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
examples/cli/CMakeFiles/sd-cli.dir/build: bin/sd-cli
.PHONY : examples/cli/CMakeFiles/sd-cli.dir/build
examples/cli/CMakeFiles/sd-cli.dir/clean:
cd /kaggle/working/stable-diffusion.cpp/build/examples/cli && $(CMAKE_COMMAND) -P CMakeFiles/sd-cli.dir/cmake_clean.cmake
.PHONY : examples/cli/CMakeFiles/sd-cli.dir/clean
examples/cli/CMakeFiles/sd-cli.dir/depend:
cd /kaggle/working/stable-diffusion.cpp/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /kaggle/working/stable-diffusion.cpp /kaggle/working/stable-diffusion.cpp/examples/cli /kaggle/working/stable-diffusion.cpp/build /kaggle/working/stable-diffusion.cpp/build/examples/cli /kaggle/working/stable-diffusion.cpp/build/examples/cli/CMakeFiles/sd-cli.dir/DependInfo.cmake "--color=$(COLOR)"
.PHONY : examples/cli/CMakeFiles/sd-cli.dir/depend
|