Instructions to use NoQuest/LLmSave with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use NoQuest/LLmSave with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="NoQuest/LLmSave", filename="LLamandementFineTuneSansNotation16Q.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 NoQuest/LLmSave with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf NoQuest/LLmSave:Q8_0 # Run inference directly in the terminal: llama-cli -hf NoQuest/LLmSave:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf NoQuest/LLmSave:Q8_0 # Run inference directly in the terminal: llama-cli -hf NoQuest/LLmSave:Q8_0
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 NoQuest/LLmSave:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf NoQuest/LLmSave:Q8_0
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 NoQuest/LLmSave:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf NoQuest/LLmSave:Q8_0
Use Docker
docker model run hf.co/NoQuest/LLmSave:Q8_0
- LM Studio
- Jan
- Ollama
How to use NoQuest/LLmSave with Ollama:
ollama run hf.co/NoQuest/LLmSave:Q8_0
- Unsloth Studio new
How to use NoQuest/LLmSave 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 NoQuest/LLmSave 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 NoQuest/LLmSave to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for NoQuest/LLmSave to start chatting
- Docker Model Runner
How to use NoQuest/LLmSave with Docker Model Runner:
docker model run hf.co/NoQuest/LLmSave:Q8_0
- Lemonade
How to use NoQuest/LLmSave with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NoQuest/LLmSave:Q8_0
Run and chat with the model
lemonade run user.LLmSave-Q8_0
List all available models
lemonade list
Upload cpu/Dockerfile with huggingface_hub
Browse files- cpu/Dockerfile +25 -0
cpu/Dockerfile
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BUILDER
|
| 2 |
+
FROM ubuntu:22.04
|
| 3 |
+
WORKDIR /builder
|
| 4 |
+
ARG TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST:-3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6+PTX}"
|
| 5 |
+
ARG BUILD_EXTENSIONS="${BUILD_EXTENSIONS:-}"
|
| 6 |
+
ARG APP_UID="${APP_UID:-6972}"
|
| 7 |
+
ARG APP_GID="${APP_GID:-6972}"
|
| 8 |
+
ARG GPU_CHOICE=A
|
| 9 |
+
ARG USE_CUDA118=FALSE
|
| 10 |
+
ARG LAUNCH_AFTER_INSTALL=FALSE
|
| 11 |
+
ARG INSTALL_EXTENSIONS=TRUE
|
| 12 |
+
|
| 13 |
+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,rw \
|
| 14 |
+
apt update && \
|
| 15 |
+
apt install --no-install-recommends -y git vim build-essential python3-dev pip bash curl bash-completion && \
|
| 16 |
+
rm -rf /var/lib/apt/lists/*
|
| 17 |
+
WORKDIR /home/app/
|
| 18 |
+
RUN git clone https://github.com/oobabooga/text-generation-webui.git
|
| 19 |
+
WORKDIR /home/app/text-generation-webui
|
| 20 |
+
RUN GPU_CHOICE=N USE_CUDA118=FALSE LAUNCH_AFTER_INSTALL=FALSE INSTALL_EXTENSIONS=TRUE ./start_linux.sh --verbose
|
| 21 |
+
COPY CMD_FLAGS.txt /home/app/text-generation-webui/
|
| 22 |
+
EXPOSE ${CONTAINER_PORT:-7860} ${CONTAINER_API_PORT:-5000} ${CONTAINER_API_STREAM_PORT:-5005}
|
| 23 |
+
# set umask to ensure group read / write at runtime
|
| 24 |
+
WORKDIR /home/app/text-generation-webui
|
| 25 |
+
CMD umask 0002 && export HOME=/home/app/text-generation-webui && ./start_linux.sh --model /Users/computer/git/text-generation-webui/models/LLamandementFineTunéWithoutNotation16Q.gguf --loader llama.cpp --verbose
|