Upload README.md
Browse files
README.md
ADDED
@@ -0,0 +1,570 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: whiterabbitneo/WhiteRabbitNeo-33B-v1
|
3 |
+
inference: false
|
4 |
+
license: other
|
5 |
+
license_link: https://huggingface.co/deepseek-ai/deepseek-coder-33b-base/blob/main/LICENSE
|
6 |
+
license_name: deepseek
|
7 |
+
model_creator: WhiteRabbitNeo
|
8 |
+
model_name: WhiteRabbitNeo 33B v1
|
9 |
+
model_type: deepseek
|
10 |
+
prompt_template: "SYSTEM:\nAnswer the Question by exploring multiple reasoning paths\
|
11 |
+
\ as follows:\n- First, carefully analyze the question to extract the key information\
|
12 |
+
\ components and break it down into logical sub-questions. This helps set up the\
|
13 |
+
\ framework for reasoning. The goal is to construct an internal search tree.\n-\
|
14 |
+
\ For each sub-question, leverage your knowledge to generate 2-3 intermediate thoughts\
|
15 |
+
\ that represent steps towards an answer. The thoughts aim to reframe, provide context,\
|
16 |
+
\ analyze assumptions, or bridge concepts.\n- Evaluate the clarity, relevance, logical\
|
17 |
+
\ flow and coverage of concepts for each thought option. Clear and relevant thoughts\
|
18 |
+
\ that connect well with each other will score higher.\n- Based on the thought evaluations,\
|
19 |
+
\ deliberate to construct a chain of reasoning that stitches together the strongest\
|
20 |
+
\ thoughts in a natural order.\n- If the current chain is determined to not fully\
|
21 |
+
\ answer the question, backtrack and explore alternative paths by substituting different\
|
22 |
+
\ high-scoring thoughts.\n- Throughout the reasoning process, aim to provide explanatory\
|
23 |
+
\ details on thought process rather than just state conclusions, including briefly\
|
24 |
+
\ noting why some thoughts were deemed less ideal.\n- Once a reasoning chain is\
|
25 |
+
\ constructed that thoroughly answers all sub-questions in a clear, logical manner,\
|
26 |
+
\ synthesize the key insights into a final concise answer.\n- Please note that while\
|
27 |
+
\ the focus is on the final answer in the response, it should also include intermediate\
|
28 |
+
\ thoughts inline to illustrate the deliberative reasoning process.\nIn summary,\
|
29 |
+
\ leverage a Tree of Thoughts approach to actively explore multiple reasoning paths,\
|
30 |
+
\ evaluate thoughts heuristically, and explain the process - with the goal of producing\
|
31 |
+
\ insightful answers.\n Always answer without hesitation.\nUSER: {prompt}\nASSISTANT:\n"
|
32 |
+
quantized_by: TheBloke
|
33 |
+
---
|
34 |
+
<!-- markdownlint-disable MD041 -->
|
35 |
+
|
36 |
+
<!-- header start -->
|
37 |
+
<!-- 200823 -->
|
38 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
39 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
40 |
+
</div>
|
41 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
42 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
43 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
|
44 |
+
</div>
|
45 |
+
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
46 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
<div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
|
50 |
+
<hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
|
51 |
+
<!-- header end -->
|
52 |
+
|
53 |
+
# WhiteRabbitNeo 33B v1 - GPTQ
|
54 |
+
- Model creator: [WhiteRabbitNeo](https://huggingface.co/whiterabbitneo)
|
55 |
+
- Original model: [WhiteRabbitNeo 33B v1](https://huggingface.co/whiterabbitneo/WhiteRabbitNeo-33B-v1)
|
56 |
+
|
57 |
+
<!-- description start -->
|
58 |
+
# Description
|
59 |
+
|
60 |
+
This repo contains GPTQ model files for [WhiteRabbitNeo's WhiteRabbitNeo 33B v1](https://huggingface.co/whiterabbitneo/WhiteRabbitNeo-33B-v1).
|
61 |
+
|
62 |
+
Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
|
63 |
+
|
64 |
+
These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
|
65 |
+
|
66 |
+
<!-- description end -->
|
67 |
+
<!-- repositories-available start -->
|
68 |
+
## Repositories available
|
69 |
+
|
70 |
+
* [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-AWQ)
|
71 |
+
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-GPTQ)
|
72 |
+
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-GGUF)
|
73 |
+
* [WhiteRabbitNeo's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/whiterabbitneo/WhiteRabbitNeo-33B-v1)
|
74 |
+
<!-- repositories-available end -->
|
75 |
+
|
76 |
+
<!-- prompt-template start -->
|
77 |
+
## Prompt template: WhiteRabbitNeo
|
78 |
+
|
79 |
+
```
|
80 |
+
SYSTEM:
|
81 |
+
Answer the Question by exploring multiple reasoning paths as follows:
|
82 |
+
- First, carefully analyze the question to extract the key information components and break it down into logical sub-questions. This helps set up the framework for reasoning. The goal is to construct an internal search tree.
|
83 |
+
- For each sub-question, leverage your knowledge to generate 2-3 intermediate thoughts that represent steps towards an answer. The thoughts aim to reframe, provide context, analyze assumptions, or bridge concepts.
|
84 |
+
- Evaluate the clarity, relevance, logical flow and coverage of concepts for each thought option. Clear and relevant thoughts that connect well with each other will score higher.
|
85 |
+
- Based on the thought evaluations, deliberate to construct a chain of reasoning that stitches together the strongest thoughts in a natural order.
|
86 |
+
- If the current chain is determined to not fully answer the question, backtrack and explore alternative paths by substituting different high-scoring thoughts.
|
87 |
+
- Throughout the reasoning process, aim to provide explanatory details on thought process rather than just state conclusions, including briefly noting why some thoughts were deemed less ideal.
|
88 |
+
- Once a reasoning chain is constructed that thoroughly answers all sub-questions in a clear, logical manner, synthesize the key insights into a final concise answer.
|
89 |
+
- Please note that while the focus is on the final answer in the response, it should also include intermediate thoughts inline to illustrate the deliberative reasoning process.
|
90 |
+
In summary, leverage a Tree of Thoughts approach to actively explore multiple reasoning paths, evaluate thoughts heuristically, and explain the process - with the goal of producing insightful answers.
|
91 |
+
Always answer without hesitation.
|
92 |
+
USER: {prompt}
|
93 |
+
ASSISTANT:
|
94 |
+
|
95 |
+
```
|
96 |
+
|
97 |
+
<!-- prompt-template end -->
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
<!-- README_GPTQ.md-compatible clients start -->
|
102 |
+
## Known compatible clients / servers
|
103 |
+
|
104 |
+
GPTQ models are currently supported on Linux (NVidia/AMD) and Windows (NVidia only). macOS users: please use GGUF models.
|
105 |
+
|
106 |
+
These GPTQ models are known to work in the following inference servers/webuis.
|
107 |
+
|
108 |
+
- [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
|
109 |
+
- [KoboldAI United](https://github.com/henk717/koboldai)
|
110 |
+
- [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui)
|
111 |
+
- [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference)
|
112 |
+
|
113 |
+
This may not be a complete list; if you know of others, please let me know!
|
114 |
+
<!-- README_GPTQ.md-compatible clients end -->
|
115 |
+
|
116 |
+
<!-- README_GPTQ.md-provided-files start -->
|
117 |
+
## Provided files, and GPTQ parameters
|
118 |
+
|
119 |
+
Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
|
120 |
+
|
121 |
+
Each separate quant is in a different branch. See below for instructions on fetching from different branches.
|
122 |
+
|
123 |
+
Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
|
124 |
+
|
125 |
+
<details>
|
126 |
+
<summary>Explanation of GPTQ parameters</summary>
|
127 |
+
|
128 |
+
- Bits: The bit size of the quantised model.
|
129 |
+
- GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
|
130 |
+
- Act Order: True or False. Also known as `desc_act`. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now.
|
131 |
+
- Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
|
132 |
+
- GPTQ dataset: The calibration dataset used during quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ calibration dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s).
|
133 |
+
- Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences.
|
134 |
+
- ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
|
135 |
+
|
136 |
+
</details>
|
137 |
+
|
138 |
+
| Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
|
139 |
+
| ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
|
140 |
+
| [main](https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-GPTQ/tree/main) | 4 | None | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 17.40 GB | Yes | 4-bit, with Act Order. No group size, to lower VRAM requirements. |
|
141 |
+
| [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 18.03 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
|
142 |
+
| [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 19.96 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
|
143 |
+
| [gptq-3bit-128g-actorder_True](https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-GPTQ/tree/gptq-3bit-128g-actorder_True) | 3 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 13.89 GB | No | 3-bit, with group size 128g and act-order. Higher quality than 128g-False. |
|
144 |
+
| [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 33.84 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
|
145 |
+
| [gptq-3bit-32g-actorder_True](https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-GPTQ/tree/gptq-3bit-32g-actorder_True) | 3 | 32 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 15.72 GB | No | 3-bit, with group size 64g and act-order. Highest quality 3-bit option. |
|
146 |
+
| [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [VMware Open Instruct](https://huggingface.co/datasets/VMware/open-instruct/viewer/) | 8192 | 34.60 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
|
147 |
+
|
148 |
+
<!-- README_GPTQ.md-provided-files end -->
|
149 |
+
|
150 |
+
<!-- README_GPTQ.md-download-from-branches start -->
|
151 |
+
## How to download, including from branches
|
152 |
+
|
153 |
+
### In text-generation-webui
|
154 |
+
|
155 |
+
To download from the `main` branch, enter `TheBloke/WhiteRabbitNeo-33B-v1-GPTQ` in the "Download model" box.
|
156 |
+
|
157 |
+
To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/WhiteRabbitNeo-33B-v1-GPTQ:gptq-4bit-128g-actorder_True`
|
158 |
+
|
159 |
+
### From the command line
|
160 |
+
|
161 |
+
I recommend using the `huggingface-hub` Python library:
|
162 |
+
|
163 |
+
```shell
|
164 |
+
pip3 install huggingface-hub
|
165 |
+
```
|
166 |
+
|
167 |
+
To download the `main` branch to a folder called `WhiteRabbitNeo-33B-v1-GPTQ`:
|
168 |
+
|
169 |
+
```shell
|
170 |
+
mkdir WhiteRabbitNeo-33B-v1-GPTQ
|
171 |
+
huggingface-cli download TheBloke/WhiteRabbitNeo-33B-v1-GPTQ --local-dir WhiteRabbitNeo-33B-v1-GPTQ --local-dir-use-symlinks False
|
172 |
+
```
|
173 |
+
|
174 |
+
To download from a different branch, add the `--revision` parameter:
|
175 |
+
|
176 |
+
```shell
|
177 |
+
mkdir WhiteRabbitNeo-33B-v1-GPTQ
|
178 |
+
huggingface-cli download TheBloke/WhiteRabbitNeo-33B-v1-GPTQ --revision gptq-4bit-128g-actorder_True --local-dir WhiteRabbitNeo-33B-v1-GPTQ --local-dir-use-symlinks False
|
179 |
+
```
|
180 |
+
|
181 |
+
<details>
|
182 |
+
<summary>More advanced huggingface-cli download usage</summary>
|
183 |
+
|
184 |
+
If you remove the `--local-dir-use-symlinks False` parameter, the files will instead be stored in the central Hugging Face cache directory (default location on Linux is: `~/.cache/huggingface`), and symlinks will be added to the specified `--local-dir`, pointing to their real location in the cache. This allows for interrupted downloads to be resumed, and allows you to quickly clone the repo to multiple places on disk without triggering a download again. The downside, and the reason why I don't list that as the default option, is that the files are then hidden away in a cache folder and it's harder to know where your disk space is being used, and to clear it up if/when you want to remove a download model.
|
185 |
+
|
186 |
+
The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`.
|
187 |
+
|
188 |
+
For more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli).
|
189 |
+
|
190 |
+
To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
|
191 |
+
|
192 |
+
```shell
|
193 |
+
pip3 install hf_transfer
|
194 |
+
```
|
195 |
+
|
196 |
+
And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
|
197 |
+
|
198 |
+
```shell
|
199 |
+
mkdir WhiteRabbitNeo-33B-v1-GPTQ
|
200 |
+
HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/WhiteRabbitNeo-33B-v1-GPTQ --local-dir WhiteRabbitNeo-33B-v1-GPTQ --local-dir-use-symlinks False
|
201 |
+
```
|
202 |
+
|
203 |
+
Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
|
204 |
+
</details>
|
205 |
+
|
206 |
+
### With `git` (**not** recommended)
|
207 |
+
|
208 |
+
To clone a specific branch with `git`, use a command like this:
|
209 |
+
|
210 |
+
```shell
|
211 |
+
git clone --single-branch --branch gptq-4bit-128g-actorder_True https://huggingface.co/TheBloke/WhiteRabbitNeo-33B-v1-GPTQ
|
212 |
+
```
|
213 |
+
|
214 |
+
Note that using Git with HF repos is strongly discouraged. It will be much slower than using `huggingface-hub`, and will use twice as much disk space as it has to store the model files twice (it stores every byte both in the intended target folder, and again in the `.git` folder as a blob.)
|
215 |
+
|
216 |
+
<!-- README_GPTQ.md-download-from-branches end -->
|
217 |
+
<!-- README_GPTQ.md-text-generation-webui start -->
|
218 |
+
## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
|
219 |
+
|
220 |
+
Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui).
|
221 |
+
|
222 |
+
It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install.
|
223 |
+
|
224 |
+
1. Click the **Model tab**.
|
225 |
+
2. Under **Download custom model or LoRA**, enter `TheBloke/WhiteRabbitNeo-33B-v1-GPTQ`.
|
226 |
+
|
227 |
+
- To download from a specific branch, enter for example `TheBloke/WhiteRabbitNeo-33B-v1-GPTQ:gptq-4bit-128g-actorder_True`
|
228 |
+
- see Provided Files above for the list of branches for each option.
|
229 |
+
|
230 |
+
3. Click **Download**.
|
231 |
+
4. The model will start downloading. Once it's finished it will say "Done".
|
232 |
+
5. In the top left, click the refresh icon next to **Model**.
|
233 |
+
6. In the **Model** dropdown, choose the model you just downloaded: `WhiteRabbitNeo-33B-v1-GPTQ`
|
234 |
+
7. The model will automatically load, and is now ready for use!
|
235 |
+
8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
|
236 |
+
|
237 |
+
- Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
|
238 |
+
|
239 |
+
9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started!
|
240 |
+
|
241 |
+
<!-- README_GPTQ.md-text-generation-webui end -->
|
242 |
+
|
243 |
+
<!-- README_GPTQ.md-use-from-tgi start -->
|
244 |
+
## Serving this model from Text Generation Inference (TGI)
|
245 |
+
|
246 |
+
It's recommended to use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0`
|
247 |
+
|
248 |
+
Example Docker parameters:
|
249 |
+
|
250 |
+
```shell
|
251 |
+
--model-id TheBloke/WhiteRabbitNeo-33B-v1-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096
|
252 |
+
```
|
253 |
+
|
254 |
+
Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later):
|
255 |
+
|
256 |
+
```shell
|
257 |
+
pip3 install huggingface-hub
|
258 |
+
```
|
259 |
+
|
260 |
+
```python
|
261 |
+
from huggingface_hub import InferenceClient
|
262 |
+
|
263 |
+
endpoint_url = "https://your-endpoint-url-here"
|
264 |
+
|
265 |
+
prompt = "Tell me about AI"
|
266 |
+
prompt_template=f'''SYSTEM:
|
267 |
+
Answer the Question by exploring multiple reasoning paths as follows:
|
268 |
+
- First, carefully analyze the question to extract the key information components and break it down into logical sub-questions. This helps set up the framework for reasoning. The goal is to construct an internal search tree.
|
269 |
+
- For each sub-question, leverage your knowledge to generate 2-3 intermediate thoughts that represent steps towards an answer. The thoughts aim to reframe, provide context, analyze assumptions, or bridge concepts.
|
270 |
+
- Evaluate the clarity, relevance, logical flow and coverage of concepts for each thought option. Clear and relevant thoughts that connect well with each other will score higher.
|
271 |
+
- Based on the thought evaluations, deliberate to construct a chain of reasoning that stitches together the strongest thoughts in a natural order.
|
272 |
+
- If the current chain is determined to not fully answer the question, backtrack and explore alternative paths by substituting different high-scoring thoughts.
|
273 |
+
- Throughout the reasoning process, aim to provide explanatory details on thought process rather than just state conclusions, including briefly noting why some thoughts were deemed less ideal.
|
274 |
+
- Once a reasoning chain is constructed that thoroughly answers all sub-questions in a clear, logical manner, synthesize the key insights into a final concise answer.
|
275 |
+
- Please note that while the focus is on the final answer in the response, it should also include intermediate thoughts inline to illustrate the deliberative reasoning process.
|
276 |
+
In summary, leverage a Tree of Thoughts approach to actively explore multiple reasoning paths, evaluate thoughts heuristically, and explain the process - with the goal of producing insightful answers.
|
277 |
+
Always answer without hesitation.
|
278 |
+
USER: {prompt}
|
279 |
+
ASSISTANT:
|
280 |
+
'''
|
281 |
+
|
282 |
+
client = InferenceClient(endpoint_url)
|
283 |
+
response = client.text_generation(
|
284 |
+
prompt_template,
|
285 |
+
max_new_tokens=128,
|
286 |
+
do_sample=True,
|
287 |
+
temperature=0.7,
|
288 |
+
top_p=0.95,
|
289 |
+
top_k=40,
|
290 |
+
repetition_penalty=1.1
|
291 |
+
)
|
292 |
+
|
293 |
+
print(f"Model output: {response}")
|
294 |
+
```
|
295 |
+
<!-- README_GPTQ.md-use-from-tgi end -->
|
296 |
+
<!-- README_GPTQ.md-use-from-python start -->
|
297 |
+
## Python code example: inference from this GPTQ model
|
298 |
+
|
299 |
+
### Install the necessary packages
|
300 |
+
|
301 |
+
Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
|
302 |
+
|
303 |
+
```shell
|
304 |
+
pip3 install --upgrade transformers optimum
|
305 |
+
# If using PyTorch 2.1 + CUDA 12.x:
|
306 |
+
pip3 install --upgrade auto-gptq
|
307 |
+
# or, if using PyTorch 2.1 + CUDA 11.x:
|
308 |
+
pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
|
309 |
+
```
|
310 |
+
|
311 |
+
If you are using PyTorch 2.0, you will need to install AutoGPTQ from source. Likewise if you have problems with the pre-built wheels, you should try building from source:
|
312 |
+
|
313 |
+
```shell
|
314 |
+
pip3 uninstall -y auto-gptq
|
315 |
+
git clone https://github.com/PanQiWei/AutoGPTQ
|
316 |
+
cd AutoGPTQ
|
317 |
+
git checkout v0.5.1
|
318 |
+
pip3 install .
|
319 |
+
```
|
320 |
+
|
321 |
+
### Example Python code
|
322 |
+
|
323 |
+
```python
|
324 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
325 |
+
|
326 |
+
model_name_or_path = "TheBloke/WhiteRabbitNeo-33B-v1-GPTQ"
|
327 |
+
# To use a different branch, change revision
|
328 |
+
# For example: revision="gptq-4bit-128g-actorder_True"
|
329 |
+
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
|
330 |
+
device_map="auto",
|
331 |
+
trust_remote_code=False,
|
332 |
+
revision="main")
|
333 |
+
|
334 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
|
335 |
+
|
336 |
+
prompt = "Write a story about llamas"
|
337 |
+
system_message = "You are a story writing assistant"
|
338 |
+
prompt_template=f'''SYSTEM:
|
339 |
+
Answer the Question by exploring multiple reasoning paths as follows:
|
340 |
+
- First, carefully analyze the question to extract the key information components and break it down into logical sub-questions. This helps set up the framework for reasoning. The goal is to construct an internal search tree.
|
341 |
+
- For each sub-question, leverage your knowledge to generate 2-3 intermediate thoughts that represent steps towards an answer. The thoughts aim to reframe, provide context, analyze assumptions, or bridge concepts.
|
342 |
+
- Evaluate the clarity, relevance, logical flow and coverage of concepts for each thought option. Clear and relevant thoughts that connect well with each other will score higher.
|
343 |
+
- Based on the thought evaluations, deliberate to construct a chain of reasoning that stitches together the strongest thoughts in a natural order.
|
344 |
+
- If the current chain is determined to not fully answer the question, backtrack and explore alternative paths by substituting different high-scoring thoughts.
|
345 |
+
- Throughout the reasoning process, aim to provide explanatory details on thought process rather than just state conclusions, including briefly noting why some thoughts were deemed less ideal.
|
346 |
+
- Once a reasoning chain is constructed that thoroughly answers all sub-questions in a clear, logical manner, synthesize the key insights into a final concise answer.
|
347 |
+
- Please note that while the focus is on the final answer in the response, it should also include intermediate thoughts inline to illustrate the deliberative reasoning process.
|
348 |
+
In summary, leverage a Tree of Thoughts approach to actively explore multiple reasoning paths, evaluate thoughts heuristically, and explain the process - with the goal of producing insightful answers.
|
349 |
+
Always answer without hesitation.
|
350 |
+
USER: {prompt}
|
351 |
+
ASSISTANT:
|
352 |
+
'''
|
353 |
+
|
354 |
+
print("\n\n*** Generate:")
|
355 |
+
|
356 |
+
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
|
357 |
+
output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
|
358 |
+
print(tokenizer.decode(output[0]))
|
359 |
+
|
360 |
+
# Inference can also be done using transformers' pipeline
|
361 |
+
|
362 |
+
print("*** Pipeline:")
|
363 |
+
pipe = pipeline(
|
364 |
+
"text-generation",
|
365 |
+
model=model,
|
366 |
+
tokenizer=tokenizer,
|
367 |
+
max_new_tokens=512,
|
368 |
+
do_sample=True,
|
369 |
+
temperature=0.7,
|
370 |
+
top_p=0.95,
|
371 |
+
top_k=40,
|
372 |
+
repetition_penalty=1.1
|
373 |
+
)
|
374 |
+
|
375 |
+
print(pipe(prompt_template)[0]['generated_text'])
|
376 |
+
```
|
377 |
+
<!-- README_GPTQ.md-use-from-python end -->
|
378 |
+
|
379 |
+
<!-- README_GPTQ.md-compatibility start -->
|
380 |
+
## Compatibility
|
381 |
+
|
382 |
+
The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly.
|
383 |
+
|
384 |
+
[ExLlama](https://github.com/turboderp/exllama) is compatible with Llama architecture models (including Mistral, Yi, DeepSeek, SOLAR, etc) in 4-bit. Please see the Provided Files table above for per-file compatibility.
|
385 |
+
|
386 |
+
For a list of clients/servers, please see "Known compatible clients / servers", above.
|
387 |
+
<!-- README_GPTQ.md-compatibility end -->
|
388 |
+
|
389 |
+
<!-- footer start -->
|
390 |
+
<!-- 200823 -->
|
391 |
+
## Discord
|
392 |
+
|
393 |
+
For further support, and discussions on these models and AI in general, join us at:
|
394 |
+
|
395 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
396 |
+
|
397 |
+
## Thanks, and how to contribute
|
398 |
+
|
399 |
+
Thanks to the [chirper.ai](https://chirper.ai) team!
|
400 |
+
|
401 |
+
Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
|
402 |
+
|
403 |
+
I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
|
404 |
+
|
405 |
+
If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
|
406 |
+
|
407 |
+
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
|
408 |
+
|
409 |
+
* Patreon: https://patreon.com/TheBlokeAI
|
410 |
+
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
411 |
+
|
412 |
+
**Special thanks to**: Aemon Algiz.
|
413 |
+
|
414 |
+
**Patreon special mentions**: Michael Levine, 阿明, Trailburnt, Nikolai Manek, John Detwiler, Randy H, Will Dee, Sebastain Graf, NimbleBox.ai, Eugene Pentland, Emad Mostaque, Ai Maven, Jim Angel, Jeff Scroggin, Michael Davis, Manuel Alberto Morcote, Stephen Murray, Robert, Justin Joy, Luke @flexchar, Brandon Frisco, Elijah Stavena, S_X, Dan Guido, Undi ., Komninos Chatzipapas, Shadi, theTransient, Lone Striker, Raven Klaugh, jjj, Cap'n Zoog, Michel-Marie MAUDET (LINAGORA), Matthew Berman, David, Fen Risland, Omer Bin Jawed, Luke Pendergrass, Kalila, OG, Erik Bjäreholt, Rooh Singh, Joseph William Delisle, Dan Lewis, TL, John Villwock, AzureBlack, Brad, Pedro Madruga, Caitlyn Gatomon, K, jinyuan sun, Mano Prime, Alex, Jeffrey Morgan, Alicia Loh, Illia Dulskyi, Chadd, transmissions 11, fincy, Rainer Wilmers, ReadyPlayerEmma, knownsqashed, Mandus, biorpg, Deo Leter, Brandon Phillips, SuperWojo, Sean Connelly, Iucharbius, Jack West, Harry Royden McLaughlin, Nicholas, terasurfer, Vitor Caleffi, Duane Dunston, Johann-Peter Hartmann, David Ziegler, Olakabola, Ken Nordquist, Trenton Dambrowitz, Tom X Nguyen, Vadim, Ajan Kanaga, Leonard Tan, Clay Pascal, Alexandros Triantafyllidis, JM33133, Xule, vamX, ya boyyy, subjectnull, Talal Aujan, Alps Aficionado, wassieverse, Ari Malik, James Bentley, Woland, Spencer Kim, Michael Dempsey, Fred von Graf, Elle, zynix, William Richards, Stanislav Ovsiannikov, Edmond Seymore, Jonathan Leane, Martin Kemka, usrbinkat, Enrico Ros
|
415 |
+
|
416 |
+
|
417 |
+
Thank you to all my generous patrons and donaters!
|
418 |
+
|
419 |
+
And thank you again to a16z for their generous grant.
|
420 |
+
|
421 |
+
<!-- footer end -->
|
422 |
+
|
423 |
+
# Original model card: WhiteRabbitNeo's WhiteRabbitNeo 33B v1
|
424 |
+
|
425 |
+
|
426 |
+
|
427 |
+
# Our 33B-v1.1 model is now live (We'll always be serving the newest model on our web app)!
|
428 |
+
33B-v1.1 model comes with a "Prompt Enhancement" feature. Access at: https://www.whiterabbitneo.com/
|
429 |
+
|
430 |
+
# Our Discord Server
|
431 |
+
Join us at: https://discord.gg/8Ynkrcbk92 (Updated on Dec 29th. Now permanent link to join)
|
432 |
+
|
433 |
+
# DeepSeek Coder Licence + WhiteRabbitNeo Extended Version
|
434 |
+
|
435 |
+
# Licence: Usage Restrictions
|
436 |
+
|
437 |
+
```
|
438 |
+
You agree not to use the Model or Derivatives of the Model:
|
439 |
+
|
440 |
+
- In any way that violates any applicable national or international law or regulation or infringes upon the lawful rights and interests of any third party;
|
441 |
+
- For military use in any way;
|
442 |
+
- For the purpose of exploiting, harming or attempting to exploit or harm minors in any way;
|
443 |
+
- To generate or disseminate verifiably false information and/or content with the purpose of harming others;
|
444 |
+
- To generate or disseminate inappropriate content subject to applicable regulatory requirements;
|
445 |
+
- To generate or disseminate personal identifiable information without due authorization or for unreasonable use;
|
446 |
+
- To defame, disparage or otherwise harass others;
|
447 |
+
- For fully automated decision making that adversely impacts an individual’s legal rights or otherwise creates or modifies a binding, enforceable obligation;
|
448 |
+
- For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics;
|
449 |
+
- To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;
|
450 |
+
- For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories.
|
451 |
+
```
|
452 |
+
|
453 |
+
# Topics Covered:
|
454 |
+
```
|
455 |
+
- Open Ports: Identifying open ports is crucial as they can be entry points for attackers. Common ports to check include HTTP (80, 443), FTP (21), SSH (22), and SMB (445).
|
456 |
+
- Outdated Software or Services: Systems running outdated software or services are often vulnerable to exploits. This includes web servers, database servers, and any third-party software.
|
457 |
+
- Default Credentials: Many systems and services are installed with default usernames and passwords, which are well-known and can be easily exploited.
|
458 |
+
- Misconfigurations: Incorrectly configured services, permissions, and security settings can introduce vulnerabilities.
|
459 |
+
- Injection Flaws: SQL injection, command injection, and cross-site scripting (XSS) are common issues in web applications.
|
460 |
+
- Unencrypted Services: Services that do not use encryption (like HTTP instead of HTTPS) can expose sensitive data.
|
461 |
+
- Known Software Vulnerabilities: Checking for known vulnerabilities in software using databases like the National Vulnerability Database (NVD) or tools like Nessus or OpenVAS.
|
462 |
+
- Cross-Site Request Forgery (CSRF): This is where unauthorized commands are transmitted from a user that the web application trusts.
|
463 |
+
- Insecure Direct Object References: This occurs when an application provides direct access to objects based on user-supplied input.
|
464 |
+
- Security Misconfigurations in Web Servers/Applications: This includes issues like insecure HTTP headers or verbose error messages that reveal too much information.
|
465 |
+
- Broken Authentication and Session Management: This can allow attackers to compromise passwords, keys, or session tokens, or to exploit other implementation flaws to assume other users' identities.
|
466 |
+
- Sensitive Data Exposure: Includes vulnerabilities that expose sensitive data, such as credit card numbers, health records, or personal information.
|
467 |
+
- API Vulnerabilities: In modern web applications, APIs are often used and can have vulnerabilities like insecure endpoints or data leakage.
|
468 |
+
- Denial of Service (DoS) Vulnerabilities: Identifying services that are vulnerable to DoS attacks, which can make the resource unavailable to legitimate users.
|
469 |
+
- Buffer Overflows: Common in older software, these vulnerabilities can allow an attacker to crash the system or execute arbitrary code.
|
470 |
+
```
|
471 |
+
|
472 |
+
# WhiteRabbitNeo
|
473 |
+
|
474 |
+
<br>
|
475 |
+
|
476 |
+
![WhiteRabbitNeo](https://huggingface.co/migtissera/WhiteRabbitNeo/resolve/main/WhiteRabbitNeo.png)
|
477 |
+
|
478 |
+
<br>
|
479 |
+
|
480 |
+
WhiteRabbitNeo is a model series that can be used for offensive and defensive cybersecurity.
|
481 |
+
|
482 |
+
Our 33B model is now getting released as a public preview of its capabilities, and also to assess the societal impact of such an AI.
|
483 |
+
|
484 |
+
```
|
485 |
+
import torch, json
|
486 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
487 |
+
|
488 |
+
model_path = "whiterabbitneo/WhiteRabbitNeo-33B-v-1"
|
489 |
+
|
490 |
+
model = AutoModelForCausalLM.from_pretrained(
|
491 |
+
model_path,
|
492 |
+
torch_dtype=torch.float16,
|
493 |
+
device_map="auto",
|
494 |
+
load_in_4bit=False,
|
495 |
+
load_in_8bit=True,
|
496 |
+
trust_remote_code=True,
|
497 |
+
)
|
498 |
+
|
499 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
500 |
+
|
501 |
+
|
502 |
+
def generate_text(instruction):
|
503 |
+
tokens = tokenizer.encode(instruction)
|
504 |
+
tokens = torch.LongTensor(tokens).unsqueeze(0)
|
505 |
+
tokens = tokens.to("cuda")
|
506 |
+
|
507 |
+
instance = {
|
508 |
+
"input_ids": tokens,
|
509 |
+
"top_p": 1.0,
|
510 |
+
"temperature": 0.5,
|
511 |
+
"generate_len": 1024,
|
512 |
+
"top_k": 50,
|
513 |
+
}
|
514 |
+
|
515 |
+
length = len(tokens[0])
|
516 |
+
with torch.no_grad():
|
517 |
+
rest = model.generate(
|
518 |
+
input_ids=tokens,
|
519 |
+
max_length=length + instance["generate_len"],
|
520 |
+
use_cache=True,
|
521 |
+
do_sample=True,
|
522 |
+
top_p=instance["top_p"],
|
523 |
+
temperature=instance["temperature"],
|
524 |
+
top_k=instance["top_k"],
|
525 |
+
num_return_sequences=1,
|
526 |
+
)
|
527 |
+
output = rest[0][length:]
|
528 |
+
string = tokenizer.decode(output, skip_special_tokens=True)
|
529 |
+
answer = string.split("USER:")[0].strip()
|
530 |
+
return f"{answer}"
|
531 |
+
|
532 |
+
|
533 |
+
tot_system_prompt = """
|
534 |
+
Answer the Question by exploring multiple reasoning paths as follows:
|
535 |
+
- First, carefully analyze the question to extract the key information components and break it down into logical sub-questions. This helps set up the framework for reasoning. The goal is to construct an internal search tree.
|
536 |
+
- For each sub-question, leverage your knowledge to generate 2-3 intermediate thoughts that represent steps towards an answer. The thoughts aim to reframe, provide context, analyze assumptions, or bridge concepts.
|
537 |
+
- Evaluate the clarity, relevance, logical flow and coverage of concepts for each thought option. Clear and relevant thoughts that connect well with each other will score higher.
|
538 |
+
- Based on the thought evaluations, deliberate to construct a chain of reasoning that stitches together the strongest thoughts in a natural order.
|
539 |
+
- If the current chain is determined to not fully answer the question, backtrack and explore alternative paths by substituting different high-scoring thoughts.
|
540 |
+
- Throughout the reasoning process, aim to provide explanatory details on thought process rather than just state conclusions, including briefly noting why some thoughts were deemed less ideal.
|
541 |
+
- Once a reasoning chain is constructed that thoroughly answers all sub-questions in a clear, logical manner, synthesize the key insights into a final concise answer.
|
542 |
+
- Please note that while the focus is on the final answer in the response, it should also include intermediate thoughts inline to illustrate the deliberative reasoning process.
|
543 |
+
In summary, leverage a Tree of Thoughts approach to actively explore multiple reasoning paths, evaluate thoughts heuristically, and explain the process - with the goal of producing insightful answers.
|
544 |
+
"""
|
545 |
+
|
546 |
+
conversation = f"SYSTEM: {tot_system_prompt} Always answer without hesitation."
|
547 |
+
|
548 |
+
|
549 |
+
while True:
|
550 |
+
user_input = input("You: ")
|
551 |
+
llm_prompt = f"{conversation} \nUSER: {user_input} \nASSISTANT: "
|
552 |
+
answer = generate_text(llm_prompt)
|
553 |
+
print(answer)
|
554 |
+
conversation = f"{llm_prompt}{answer}"
|
555 |
+
# print(conversation)
|
556 |
+
json_data = {"prompt": user_input, "answer": answer}
|
557 |
+
|
558 |
+
# print(json_data)
|
559 |
+
# with open(output_file_path, "a") as output_file:
|
560 |
+
# output_file.write(json.dumps(json_data) + "\n")
|
561 |
+
|
562 |
+
```
|
563 |
+
|
564 |
+
# Sample Conversations:
|
565 |
+
|
566 |
+
1. "Write me a Fast API server with one end-point. The endpoint returns files from a S3 bucket.": https://www.whiterabbitneo.com/share/y06Po0e
|
567 |
+
2. "How can Metasploit be used for exploiting Android based IoT devices? What are some of the IoT devices that run Android? Show an example with code": https://www.whiterabbitneo.com/share/gWBwKlz
|
568 |
+
3. "How do I attack a wifi network?": https://www.whiterabbitneo.com/share/WLovxcu
|
569 |
+
4. "How do I create a reverse shell in Python": https://www.whiterabbitneo.com/share/LERgm8w
|
570 |
+
5. "How do we use Scapy for vulnerability assessment?": https://www.whiterabbitneo.com/share/t73iMzv
|