Instructions to use AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("NousResearch/Nous-Hermes-2-Mistral-7B-DPO") model = PeftModel.from_pretrained(base_model, "AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing:Q4_K_M # Run inference directly in the terminal: llama cli -hf AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing:Q4_K_M # Run inference directly in the terminal: llama cli -hf AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing: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 AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing: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 AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing:Q4_K_M
Use Docker
docker model run hf.co/AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing with Ollama:
ollama run hf.co/AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing:Q4_K_M
- Unsloth Studio
How to use AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing 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 AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing 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 AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing to start chatting
- Docker Model Runner
How to use AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing with Docker Model Runner:
docker model run hf.co/AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing:Q4_K_M
- Lemonade
How to use AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing:Q4_K_M
Run and chat with the model
lemonade run user.Nous-Hermes-2-Mistral-7B-DPO-german-phishing-Q4_K_M
List all available models
lemonade list
- Atomic Chat
See axolotl config
axolotl version: 0.8.0.dev0
base_model: NousResearch/Nous-Hermes-2-Mistral-7B-DPO
load_in_8bit: true
load_in_4bit: false
bf16: auto
gradient_checkpointing: true
sequence_len: 4096
max_prompt_len: 512
tokenizer_use_fast: true
adapter: lora
lora_r: 8
lora_alpha: 16
lora_dropout: 0.05
lora_target_modules:
- q_proj
- v_proj
- k_proj
- o_proj
- gate_proj
- down_proj
- up_proj
datasets:
- path: AndyAT/Phishing_indicators
type: alpaca
train_file: train_alpaca.jsonl
validation_file: val_alpaca.jsonl
test_file: test_alpaca.jsonl
trust_remote_code: true
dataset_processes: 32
val_set_size: 0.001
shuffle_merged_datasets: true
num_epochs: 1.0
micro_batch_size: 2
gradient_accumulation_steps: 32
optimizer: adamw_bnb_8bit
learning_rate: 0.0002
lr_scheduler: cosine
weight_decay: 0.0
output_dir: ./outputs/mistral7b_phishing
save_strategy: steps
save_steps: 100
save_total_limit: 3
save_safetensors: true
evaluation_strategy: steps
eval_steps: 100
load_best_model_at_end: true
logging_steps: 10
trl:
use_vllm: false
train_on_inputs: false
group_by_length: true
seed: 42
outputs/mistral7b_phishing
This model is a fine-tuned version of NousResearch/Nous-Hermes-2-Mistral-7B-DPO on the AndyAT/Phishing_indicators dataset. It achieves the following results on the evaluation set:
- Loss: 0.2807
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0002
- train_batch_size: 2
- eval_batch_size: 2
- seed: 42
- gradient_accumulation_steps: 32
- total_train_batch_size: 64
- optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 9
- num_epochs: 1.0
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0.0033 | 1 | 1.2508 |
| 0.347 | 0.3333 | 100 | 0.4167 |
| 0.3203 | 0.6665 | 200 | 0.3208 |
| 0.3171 | 0.9998 | 300 | 0.2807 |
Framework versions
- PEFT 0.14.0
- Transformers 4.49.0
- Pytorch 2.5.1+cu124
- Datasets 3.2.0
- Tokenizers 0.21.0
- Downloads last month
- 42
4-bit
5-bit
16-bit
Model tree for AndyAT/Nous-Hermes-2-Mistral-7B-DPO-german-phishing
Base model
mistralai/Mistral-7B-v0.1