Instructions to use tastypear/CausalLM-14B-DPO-alpha-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tastypear/CausalLM-14B-DPO-alpha-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tastypear/CausalLM-14B-DPO-alpha-GGUF", filename="causallm_14b-dpo-alpha.Q3_K_M.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 tastypear/CausalLM-14B-DPO-alpha-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tastypear/CausalLM-14B-DPO-alpha-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf tastypear/CausalLM-14B-DPO-alpha-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 tastypear/CausalLM-14B-DPO-alpha-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf tastypear/CausalLM-14B-DPO-alpha-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 tastypear/CausalLM-14B-DPO-alpha-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf tastypear/CausalLM-14B-DPO-alpha-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 tastypear/CausalLM-14B-DPO-alpha-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf tastypear/CausalLM-14B-DPO-alpha-GGUF:Q4_K_M
Use Docker
docker model run hf.co/tastypear/CausalLM-14B-DPO-alpha-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use tastypear/CausalLM-14B-DPO-alpha-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tastypear/CausalLM-14B-DPO-alpha-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tastypear/CausalLM-14B-DPO-alpha-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tastypear/CausalLM-14B-DPO-alpha-GGUF:Q4_K_M
- Ollama
How to use tastypear/CausalLM-14B-DPO-alpha-GGUF with Ollama:
ollama run hf.co/tastypear/CausalLM-14B-DPO-alpha-GGUF:Q4_K_M
- Unsloth Studio new
How to use tastypear/CausalLM-14B-DPO-alpha-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 tastypear/CausalLM-14B-DPO-alpha-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 tastypear/CausalLM-14B-DPO-alpha-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tastypear/CausalLM-14B-DPO-alpha-GGUF to start chatting
- Docker Model Runner
How to use tastypear/CausalLM-14B-DPO-alpha-GGUF with Docker Model Runner:
docker model run hf.co/tastypear/CausalLM-14B-DPO-alpha-GGUF:Q4_K_M
- Lemonade
How to use tastypear/CausalLM-14B-DPO-alpha-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tastypear/CausalLM-14B-DPO-alpha-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.CausalLM-14B-DPO-alpha-GGUF-Q4_K_M
List all available models
lemonade list
CausalLM 14B-DPO-alpha - GGUF
- Model creator: CausalLM
- Original model: CausalLM 14B-DPO-alpha
Description
This repo contains GGUF format model files for CausalLM's 14B-DPO-alpha.
About GGUF
!! introduction to GUFF is copied from TheBloke's model card !!
GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
Here is an incomplate list of clients and libraries that are known to support GGUF:
- llama.cpp. The source project for GGUF. Offers a CLI and a server option.
- text-generation-webui, the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
- KoboldCpp, a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
- LM Studio, an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration.
- LoLLMS Web UI, a great web UI with many interesting and unique features, including a full model library for easy model selection.
- Faraday.dev, an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
- ctransformers, a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
- llama-cpp-python, a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
- candle, a Rust ML framework with a focus on performance, including GPU support, and ease of use.
Prompt template: ChatML
<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
Licensing
The license for the original model is listed as "wtfpl", but subject to the "Meta Llama 2 License Terms".
Original model card: CausalLM's CausalLM 14B-DPO-alpha
For details, please refer to the version without DPO training: CausalLM/14B.
| Model | MT-Bench |
|---|---|
| GPT-4 | 8.99 |
| GPT-3.5-Turbo | 7.94 |
| Zephyr-7b-β (Overfitting) | 7.34 |
| Zephyr-7b-α | 6.88 |
| CausalLM/14B-DPO-α | 7.618868 |
| CausalLM/7B-DPO-α | 7.038125 |
It should be noted that this is not a version that continues training on CausalLM/14B & 7B, but rather an optimized version that has undergone DPO training concurrently on a previous training branch, and some detailed parameters may have changed. You will still need to download the full model.
The beta branch will soon be released, employing some aggressive approaches that might be detrimental in certain tasks, in order to achieve better alignment with human preferences, aiming to meet or exceed the GPT-3.5 benchmarks. Stay tuned.
Disclaimer: Please note that the model was trained on unfiltered internet data. Since we do not have the capacity to vet all of it, there may be a substantial amount of objectionable content, pornography, violence, and offensive language present that we are unable to remove. Therefore, you will still need to complete your own checks on the model's safety and filter keywords in the output. Due to computational resource constraints, we are presently unable to implement RLHF for the model's ethics and safety, nor training on SFT samples that refuse to answer certain questions for restrictive fine-tuning.
更多详情,请参见未经DPO训练的版本:CausalLM/14B
需要注意的是,这并不是在 CausalLM/14B & 7B 上继续训练的版本,而是在之前的训练分支上同时进行了 DPO 训练的优化版本,一些细节参数可能发生了变化。 您仍然需要下载完整模型。
很快将会发布beta分支,采用了一些可能不利于某些任务的激进方法,以实现更好地符合人类偏好以接近和超过GPT-3.5基准。敬请期待。
免责声明:请注意,模型是在未经过滤的互联网数据上进行训练的。由于我们无法审核所有数据,可能会出现大量不良内容、色情、暴力和冒犯性语言,我们无法删除这些内容。因此,您仍然需要对模型的安全性进行自己的检查,并对输出中的关键词进行过滤。由于计算资源的限制,我们目前无法为模型的伦理和安全实施RLHF,也无法对拒绝回答某些问题的SFT样本进行训练以进行限制性微调。
- Downloads last month
- 3,290
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit