Text Generation
Transformers
TensorBoard
Safetensors
mistral
Generated from Trainer
dpo
trl
conversational
text-generation-inference
Instructions to use fhalation/zephyr-7b-dpo-full with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fhalation/zephyr-7b-dpo-full with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fhalation/zephyr-7b-dpo-full") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fhalation/zephyr-7b-dpo-full") model = AutoModelForCausalLM.from_pretrained("fhalation/zephyr-7b-dpo-full", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use fhalation/zephyr-7b-dpo-full with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fhalation/zephyr-7b-dpo-full" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fhalation/zephyr-7b-dpo-full", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/fhalation/zephyr-7b-dpo-full
- SGLang
How to use fhalation/zephyr-7b-dpo-full with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "fhalation/zephyr-7b-dpo-full" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fhalation/zephyr-7b-dpo-full", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "fhalation/zephyr-7b-dpo-full" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fhalation/zephyr-7b-dpo-full", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use fhalation/zephyr-7b-dpo-full with Docker Model Runner:
docker model run hf.co/fhalation/zephyr-7b-dpo-full
Training in progress, step 100
Browse files
README.md
CHANGED
|
@@ -3,8 +3,8 @@ library_name: transformers
|
|
| 3 |
model_name: zephyr-7b-dpo-full
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
-
- trl
|
| 7 |
- dpo
|
|
|
|
| 8 |
licence: license
|
| 9 |
---
|
| 10 |
|
|
@@ -35,7 +35,7 @@ This model was trained with DPO, a method introduced in [Direct Preference Optim
|
|
| 35 |
|
| 36 |
- TRL: 0.21.0
|
| 37 |
- Transformers: 4.55.4
|
| 38 |
-
- Pytorch: 2.
|
| 39 |
- Datasets: 4.0.0
|
| 40 |
- Tokenizers: 0.21.4
|
| 41 |
|
|
|
|
| 3 |
model_name: zephyr-7b-dpo-full
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
|
|
|
| 6 |
- dpo
|
| 7 |
+
- trl
|
| 8 |
licence: license
|
| 9 |
---
|
| 10 |
|
|
|
|
| 35 |
|
| 36 |
- TRL: 0.21.0
|
| 37 |
- Transformers: 4.55.4
|
| 38 |
+
- Pytorch: 2.6.0+cu126
|
| 39 |
- Datasets: 4.0.0
|
| 40 |
- Tokenizers: 0.21.4
|
| 41 |
|
model-00001-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4943162336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd19895631fad2fec0250d86a9b69d5b3f59d27f574da2900ea0e45d2b55a8e5
|
| 3 |
size 4943162336
|
model-00002-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999819336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53d782710016754f7cb7ddf2ab9fee6cb147044aea174927a6ac72bbbc28567a
|
| 3 |
size 4999819336
|
model-00003-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4540516344
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bb264b4bbf2cc2845afb13bd0caa885d1b5b5d4c9c46303b63cbef66a204ee3
|
| 3 |
size 4540516344
|
runs/Aug26_07-12-02_n124-173-215/events.out.tfevents.1756192376.n124-173-215.769530.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a4fd8c6642a02680d4acdbfc9a0d47fa79cc56d21a55a2e5ca44622a82dbd53
|
| 3 |
+
size 15531
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca32492bf9b7f8d37676c2bd24f90fb45feb06c4ecf27c9fc622294a1d5a2f48
|
| 3 |
+
size 7800
|