Instructions to use RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf", filename="SELM-Llama-3-8B-Instruct-iter-3.IQ3_M.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 RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-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 RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-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 RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-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 RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf:Q4_K_M
Use Docker
docker model run hf.co/RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf with Ollama:
ollama run hf.co/RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf:Q4_K_M
- Unsloth Studio
How to use RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-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 RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-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 RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf to start chatting
- Docker Model Runner
How to use RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf with Docker Model Runner:
docker model run hf.co/RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf:Q4_K_M
- Lemonade
How to use RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RichardErkhov/ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf:Q4_K_M
Run and chat with the model
lemonade run user.ZhangShenao_-_SELM-Llama-3-8B-Instruct-iter-3-gguf-Q4_K_M
List all available models
lemonade list
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Quantization made by Richard Erkhov.
SELM-Llama-3-8B-Instruct-iter-3 - GGUF
- Model creator: https://huggingface.co/ZhangShenao/
- Original model: https://huggingface.co/ZhangShenao/SELM-Llama-3-8B-Instruct-iter-3/
Original model description:
license: mit base_model: ZhangShenao/SELM-Llama-3-8B-Instruct-iter-2 tags: - alignment-handbook - dpo - trl - selm datasets: - HuggingFaceH4/ultrafeedback_binarized model-index: - name: SELM-Llama-3-8B-Instruct-iter-3 results: []
Self-Exploring Language Models: Active Preference Elicitation for Online Alignment.
SELM-Llama-3-8B-Instruct-iter-3
This model is a fine-tuned version of ZhangShenao/SELM-Llama-3-8B-Instruct-iter-2 using synthetic data based on on the HuggingFaceH4/ultrafeedback_binarized dataset.
Model description
- Model type: A 8B parameter Llama3-instruct-based Self-Exploring Language Models (SELM).
- License: MIT
Results
| AlpacaEval 2.0 (LC WR) | MT-Bench (Average) | |
|---|---|---|
| SELM-Llama-3-8B-Instruct-iter-3 | β β ββ 33.47 | β β β 8.29 |
| SELM-Llama-3-8B-Instruct-iter-2 | β β ββ 35.65 | β β β 8.09 |
| SELM-Llama-3-8B-Instruct-iter-1 | β β ββ 32.02 | β β β 7.92 |
| Meta-Llama-3-8B-Instruct | β β ββ 24.31 | β β β 7.93 |
Our model also ranks highly on WildBench! π₯
Training hyperparameters
The following hyperparameters were used during training:
- alpha: 0.0001
- beta: 0.01
- train_batch_size: 4
- seed: 42
- distributed_type: multi-GPU
- num_devices: 8
- gradient_accumulation_steps: 4
- total_train_batch_size: 128
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- num_epochs: 1
Framework versions
- Transformers 4.40.2
- Pytorch 2.1.2+cu121
- Datasets 2.14.6
- Tokenizers 0.19.1
- Downloads last month
- 501
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit