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
| # CMAKE generated file: DO NOT EDIT! | |
| # Generated by "Unix Makefiles" Generator, CMake Version 3.31 | |
| # Default target executed when no arguments are given to make. | |
| default_target: all | |
| .PHONY : default_target | |
| # Allow only one "make -f Makefile2" at a time, but pass parallelism. | |
| .NOTPARALLEL: | |
| #============================================================================= | |
| # 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 | |
| #============================================================================= | |
| # Targets provided globally by CMake. | |
| # Special rule for the target edit_cache | |
| edit_cache: | |
| @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "No interactive CMake dialog available..." | |
| /usr/local/lib/python3.12/dist-packages/cmake/data/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. | |
| .PHONY : edit_cache | |
| # Special rule for the target edit_cache | |
| edit_cache/fast: edit_cache | |
| .PHONY : edit_cache/fast | |
| # Special rule for the target rebuild_cache | |
| rebuild_cache: | |
| @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..." | |
| /usr/local/lib/python3.12/dist-packages/cmake/data/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) | |
| .PHONY : rebuild_cache | |
| # Special rule for the target rebuild_cache | |
| rebuild_cache/fast: rebuild_cache | |
| .PHONY : rebuild_cache/fast | |
| # Special rule for the target list_install_components | |
| list_install_components: | |
| @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Unspecified\"" | |
| .PHONY : list_install_components | |
| # Special rule for the target list_install_components | |
| list_install_components/fast: list_install_components | |
| .PHONY : list_install_components/fast | |
| # Special rule for the target install | |
| install: preinstall | |
| @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." | |
| /usr/local/lib/python3.12/dist-packages/cmake/data/bin/cmake -P cmake_install.cmake | |
| .PHONY : install | |
| # Special rule for the target install | |
| install/fast: preinstall/fast | |
| @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..." | |
| /usr/local/lib/python3.12/dist-packages/cmake/data/bin/cmake -P cmake_install.cmake | |
| .PHONY : install/fast | |
| # Special rule for the target install/local | |
| install/local: preinstall | |
| @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." | |
| /usr/local/lib/python3.12/dist-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake | |
| .PHONY : install/local | |
| # Special rule for the target install/local | |
| install/local/fast: preinstall/fast | |
| @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..." | |
| /usr/local/lib/python3.12/dist-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake | |
| .PHONY : install/local/fast | |
| # Special rule for the target install/strip | |
| install/strip: preinstall | |
| @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." | |
| /usr/local/lib/python3.12/dist-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake | |
| .PHONY : install/strip | |
| # Special rule for the target install/strip | |
| install/strip/fast: preinstall/fast | |
| @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..." | |
| /usr/local/lib/python3.12/dist-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake | |
| .PHONY : install/strip/fast | |
| # The main all target | |
| all: cmake_check_build_system | |
| cd /kaggle/working/stable-diffusion.cpp/build && $(CMAKE_COMMAND) -E cmake_progress_start /kaggle/working/stable-diffusion.cpp/build/CMakeFiles /kaggle/working/stable-diffusion.cpp/build/ggml/src/ggml-cpu//CMakeFiles/progress.marks | |
| cd /kaggle/working/stable-diffusion.cpp/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 ggml/src/ggml-cpu/all | |
| $(CMAKE_COMMAND) -E cmake_progress_start /kaggle/working/stable-diffusion.cpp/build/CMakeFiles 0 | |
| .PHONY : all | |
| # The main clean target | |
| clean: | |
| cd /kaggle/working/stable-diffusion.cpp/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 ggml/src/ggml-cpu/clean | |
| .PHONY : clean | |
| # The main clean target | |
| clean/fast: clean | |
| .PHONY : clean/fast | |
| # Prepare targets for installation. | |
| preinstall: all | |
| cd /kaggle/working/stable-diffusion.cpp/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 ggml/src/ggml-cpu/preinstall | |
| .PHONY : preinstall | |
| # Prepare targets for installation. | |
| preinstall/fast: | |
| cd /kaggle/working/stable-diffusion.cpp/build && $(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 ggml/src/ggml-cpu/preinstall | |
| .PHONY : preinstall/fast | |
| # clear depends | |
| depend: | |
| cd /kaggle/working/stable-diffusion.cpp/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 | |
| .PHONY : depend | |
| # Help Target | |
| help: | |
| @echo "The following are some of the valid targets for this Makefile:" | |
| @echo "... all (the default if no target is provided)" | |
| @echo "... clean" | |
| @echo "... depend" | |
| @echo "... edit_cache" | |
| @echo "... install" | |
| @echo "... install/local" | |
| @echo "... install/strip" | |
| @echo "... list_install_components" | |
| @echo "... rebuild_cache" | |
| .PHONY : help | |
| #============================================================================= | |
| # Special targets to cleanup operation of make. | |
| # Special rule to run CMake to check the build system integrity. | |
| # No rule that depends on this can have commands that come from listfiles | |
| # because they might be regenerated. | |
| cmake_check_build_system: | |
| cd /kaggle/working/stable-diffusion.cpp/build && $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 | |
| .PHONY : cmake_check_build_system | |