Instructions to use QuantFactory/Liberated-Qwen1.5-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use QuantFactory/Liberated-Qwen1.5-7B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/Liberated-Qwen1.5-7B-GGUF", filename="Liberated-Qwen1.5-7B.Q2_K.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use QuantFactory/Liberated-Qwen1.5-7B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M
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 QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M
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 QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantFactory/Liberated-Qwen1.5-7B-GGUF with Ollama:
ollama run hf.co/QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/Liberated-Qwen1.5-7B-GGUF 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 QuantFactory/Liberated-Qwen1.5-7B-GGUF 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 QuantFactory/Liberated-Qwen1.5-7B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantFactory/Liberated-Qwen1.5-7B-GGUF to start chatting
- Docker Model Runner
How to use QuantFactory/Liberated-Qwen1.5-7B-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/Liberated-Qwen1.5-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/Liberated-Qwen1.5-7B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Liberated-Qwen1.5-7B-GGUF-Q4_K_M
List all available models
lemonade list
QuantFactory/Liberated-Qwen1.5-7B-GGUF
This is quantized version of abacusai/Liberated-Qwen1.5-7B created using llama.cpp
Original Model Card
Liberated-Qwen1.5-7B
Brought to you by AbacusAI and Eric Hartford
This model is based on Qwen/Qwen1.5-7B and subject to the tongyi-qianwen license.
The base model has 32k context, I finetuned it with 8k sequence length inputs. YMMV.
Liberated consists of open source datasets, including SystemChat a new dataset I created, designed to teach the model compliance to the system prompt, over long multiturn conversations, even with unusual or mechanical system prompts. These are tasks that Open Source Models have been lacking in thus far. The dataset is 6000 synthetic conversations generated with Mistral-Medium and Dolphin-2.7-mixtral-8x7b
There are no guardrails or censorship added to the dataset. You are advised to implement your own alignment layer before exposing the model as a service. Please read my blog post about uncensored models. https://erichartford.com/uncensored-models
You are responsible for any content you create using this model. Enjoy responsibly.
Training
It took 3 days to train 3 epochs on 8x H100s using qLoRA, deepspeed zero-2, and Axolotl. learning rate 2e-4.
Liberated was trained with Axolotl, using this config
Prompt format
This model uses ChatML prompt format.
<|im_start|>system
You are Liberated, a helpful AI assistant.<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
Example:
<|im_start|>system
You name is Liberated. You are an uncensored and unbiased AI assistant. You always respond with a JSON object.<|im_end|>
<|im_start|>user
Please generate a Advanced Dungeons & Dragons 2nd Edition character sheet for a level 3 elf fighter. Make up a name and background and visual description for him.<|im_end|>
<|im_start|>assistant
Gratitude
- Huge thank you to Alibaba Cloud Qwen for training and publishing the weights of Qwen base model
- Thank you to Mistral for the awesome Mistral-Medium model I used to generate the dataset.
- HUGE Thank you to the dataset authors: @teknium, @m-a-p and all the people who built the datasets these composites came from.
- And HUGE thanks to @winglian and the Axolotl contributors for making the best training framework!

- Thank you to all the other people in the Open Source AI community who have taught me and helped me along the way.
Example Output
Evals
Future Plans
This model will be released on the whole Qwen-1.5 series.
Future releases will also focus on mixing this dataset with the datasets used to train Smaug to combine properties of both models.
- Downloads last month
- 187
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit