File size: 2,639 Bytes
545e8f9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
tags:
- finetuned
- quantized
- 4-bit
- AWQ
- transformers
- tensorboard
- safetensors
- mixtral
- text-generation
- trl
- orpo
- generated_from_trainer
- conversational
- dataset:argilla/distilabel-capybara-dpo-7k-binarized
- arxiv:2403.07691
- arxiv:2311.07911
- base_model:mistral-community/Mixtral-8x22B-v0.1
- license:apache-2.0
- autotrain_compatible
- endpoints_compatible
- has_space
- text-generation-inference
- region:us
model_name: zephyr-orpo-141b-A35b-v0.1-AWQ
base_model: HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1
inference: false
model_creator: HuggingFaceH4
pipeline_tag: text-generation
quantized_by: MaziyarPanahi
---
# Description
[MaziyarPanahi/zephyr-orpo-141b-A35b-v0.1-AWQ](https://huggingface.co/MaziyarPanahi/zephyr-orpo-141b-A35b-v0.1-AWQ) is a quantized (AWQ) version of [HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1](https://huggingface.co/HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1)

## How to use
### Install the necessary packages

```
pip install --upgrade accelerate autoawq transformers
```

### Example Python code


```python
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "MaziyarPanahi/zephyr-orpo-141b-A35b-v0.1-AWQ"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id).to(0)

text = "User:\nHello can you provide me with top-3 cool places to visit in Paris?\n\nAssistant:\n"
inputs = tokenizer(text, return_tensors="pt").to(0)

out = model.generate(**inputs, max_new_tokens=300)
print(tokenizer.decode(out[0], skip_special_tokens=True))
```

Results:
```
User:
Hello can you provide me with top-3 cool places to visit in Paris?

Assistant:
Absolutely, here are my top-3 recommendations for must-see places in Paris:

1. The Eiffel Tower: An icon of Paris, this wrought-iron lattice tower is a global cultural icon of France and is among the most recognizable structures in the world. Climbing up to the top offers breathtaking views of the city.

2. The Louvre Museum: Home to thousands of works of art, the Louvre is the world's largest art museum and a historic monument in Paris. Must-see pieces include the Mona Lisa, the Winged Victory of Samothrace, and the Venus de Milo.

3. Notre-Dame Cathedral: This cathedral is a masterpiece of French Gothic architecture and is famous for its intricate stone carvings, beautiful stained glass, and its iconic twin towers. Be sure to spend some time exploring its history and learning about the fascinating restoration efforts post the 2019 fire.

I hope you find these recommendations helpful and that they make for an enjoyable and memorable trip to Paris. Safe travels!
```