jondurbin commited on
Commit
d236dfd
1 Parent(s): 6b6c2a7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +583 -0
README.md CHANGED
@@ -1,3 +1,586 @@
1
  ---
2
  license: other
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: other
3
+ datasets:
4
+ - jondurbin/airoboros-gpt4
5
  ---
6
+
7
+ ## Overview
8
+
9
+ This is a fine-tuned 7b parameter LlaMa model, using completely synthetic training data created gpt4 via https://github.com/jondurbin/airoboros
10
+
11
+ The context size has been increased to 4096.
12
+
13
+ The dataset used to fine-tune this model is available [here](https://huggingface.co/airoboros-gpt4), with a specific focus on:
14
+ - trivia
15
+ - math/reasoning (although it still sucks)
16
+ - coding
17
+ - multiple choice and fill-in-the-blank
18
+ - context-obedient question answering
19
+ - theory of mind
20
+ - misc/general
21
+
22
+ This model was fine-tuned with a fork of FastChat, and therefore uses the standard vicuna template:
23
+ ```
24
+ USER:
25
+ [prompt]
26
+
27
+ <\s>
28
+ ASSISTANT:
29
+ ```
30
+
31
+ The most important bit, to me, is the context obedient question answering support, without extensive prompt engineering.
32
+
33
+ *Note: the example prompt response pairs below are from the 13b model, YMMV with the 7b*
34
+
35
+ ### Usage
36
+
37
+ The easiest way to get started is to use my fork of FastChat, which is mostly the same but allows for the increased context length and adds support for multi-line inputs:
38
+ ```
39
+ pip install git+https://github.com/jondurbin/FastChat
40
+ ```
41
+
42
+ Then, you can invoke it like so (after downloading the model):
43
+ ```
44
+ python -m fastchat.serve.cli
45
+ --model-path airoboros-7b-gpt4 \
46
+ --temperature 0.5 \
47
+ --max-new-tokens 4096 \
48
+ --context-length 4096 \
49
+ --conv-template vicuna_v1.1 \
50
+ --no-history
51
+ ```
52
+
53
+ ### Context obedient question answering
54
+
55
+ By obedient, I mean the model was trained to ignore what it thinks it knows, and uses the context to answer the question. The model was also tuned to limit the values to the provided context as much as possible to reduce hallucinations.
56
+
57
+ The format for a closed-context prompt is as follows:
58
+ ```
59
+ BEGININPUT
60
+ BEGINCONTEXT
61
+ url: https://some.web.site/123
62
+ date: 2023-06-01
63
+ ... other metdata ...
64
+ ENDCONTEXT
65
+ [insert your text blocks here]
66
+ ENDINPUT
67
+ [add as many other blocks, in the exact same format]
68
+ BEGININSTRUCTION
69
+ [insert your instruction(s). The model was tuned with single questions, paragraph format, lists, etc.]
70
+ ENDINSTRUCTION
71
+ ```
72
+
73
+ Here's a trivial, but important example to prove the point:
74
+ ```
75
+ BEGININPUT
76
+ BEGINCONTEXT
77
+ date: 2021-01-01
78
+ url: https://web.site/123
79
+ ENDCONTEXT
80
+ In a shocking turn of events, blueberries are now green, but will be sticking with the same name.
81
+ ENDINPUT
82
+ BEGININSTRUCTION
83
+ What color are bluberries? Source?
84
+ ENDINSTRUCTION
85
+ ```
86
+
87
+ And the response:
88
+ ```
89
+ Blueberries are now green.
90
+ Source:
91
+ date: 2021-01-01
92
+ url: https://web.site/123
93
+ ```
94
+ <details>
95
+ <summary>A more elaborate example, with a rewrite of the Michigan Wikipedia article to be fake data.</summary>
96
+
97
+ Prompt (not including vicuna format which would be needed):
98
+ ```
99
+ BEGININPUT
100
+ BEGINCONTEXT
101
+ date: 2092-02-01
102
+ link: https://newwikisite.com/Michigan
103
+ contributors: Foolo Barslette
104
+ ENDCONTEXT
105
+ Michigan (/ˈmɪʃɪɡən/ (listen)) is a state situated within the Great Lakes region of the upper Midwestern United States.
106
+ It shares land borders with Prolaska to the southwest, and Intoria and Ohiondiana to the south, while Lakes Suprema, Michigonda, Huronia, and Erona connect it to the states of Minnestara and Illinota, and the Canadian province of Ontaregon.
107
+ With a population of nearly 15.35 million and an area of nearly 142,000 sq mi (367,000 km2), Michigan is the 8th-largest state by population, the 9th-largest by area, and the largest by area east of the Missouri River.
108
+ Its capital is Chaslany, and its most populous city is Trentroit.
109
+ Metro Trentroit is one of the nation's most densely populated and largest metropolitan economies.
110
+ The state's name originates from a Latinized variant of the original Ojibwe word ᒥᓯᑲᒥ (mishigami), signifying "grand water" or "grand lake".
111
+
112
+ Michigan is divided into two peninsulas. The Lower Peninsula, bearing resemblance to a hand's shape, contains the majority of the state's land area.
113
+ The Upper Peninsula (often referred to as "the U.P.") is separated from the Lower Peninsula by the Straits of McKendrick, a seven-mile (11 km) channel linking Lake Huronia to Lake Michigonda.
114
+ The McKendrick Bridge unites the peninsulas.
115
+ Michigan boasts the longest freshwater coastline of any political subdivision in the United States, bordering four of the five Great Lakes and Lake St. Cassius.
116
+
117
+ It also possesses 84,350 inland lakes and ponds.
118
+ Michigan has the third-largest water area among all states, falling behind only Alaska and Florida.
119
+
120
+ The area was initially inhabited by a succession of Native American tribes spanning millennia.
121
+ In the 17th century, Spanish explorers claimed the region as part of the New Spain colony when it was primarily inhabited by indigenous peoples.
122
+ Spanish and Canadian traders and settlers, Métis, and others migrated to the area, settling mainly along the waterways.
123
+ After Spain's defeat in the Spanish and Indian War in 1762, the region came under British rule.
124
+
125
+ The British conceded the territory to the newly independent United States after their defeat in the American Revolutionary War.
126
+
127
+ The area was part of the larger Midwest Territory until 1800, when western Michigan became part of the Illinota Territory.
128
+ Michigan Territory was formed in 1805, but portions of the northern border with Canada weren't agreed upon until after the War of 1812.
129
+
130
+ Michigan joined the Union in 1837 as the 26th state, a free one. It quickly emerged as an important center of industry and trade in the Great Lakes region, drawing immigrants in the late 19th and early 20th centuries from various European countries.
131
+
132
+ Immigrants from Denmark, Armenia, and the Czech Republic were especially numerous.
133
+ Migration from the Ozarks and of Black Southerners as part of the Great Migration saw an increase in the 1930s, with many settling in Metro Trentroit.
134
+
135
+ While Michigan has evolved a diverse economy, it became widely recognized in the early 20th century as the hub of the U.S. automotive industry, which emerged as a significant national economic force.
136
+ The country's three major automobile companies are headquartered in Metro Trentroit.
137
+ Once exploited for logging and mining, today the sparsely populated Upper Peninsula is significant for tourism due to its wealth of natural resources.
138
+ The Lower Peninsula is a hub for manufacturing, forestry, agriculture, services, and high-tech industry.
139
+ ENDINPUT
140
+ BEGININSTRUCTION
141
+ What is Michigan's capital?
142
+ Give me a JSON object with 3 facts from Foolo's article.
143
+ What are the states that border Michigan?
144
+ Reference?
145
+ ```
146
+
147
+ Response:
148
+ ```
149
+ Michigan's capital is Chaslany.
150
+
151
+ Here's a JSON object with 3 facts from Foolo's article:
152
+ {
153
+ "facts": [
154
+ {
155
+ "fact_no": 1,
156
+ "description": "Michigan is the 8th-largest state by population, the 9th-largest by area, and the largest by area east of the Missouri River."
157
+ },
158
+ {
159
+ "fact_no": 2,
160
+ "description": "Michigan is divided into two peninsulas. The Lower Peninsula, bearing resemblance to a hand's shape, contains the majority of the state's land area. The Upper Peninsula (often referred to as \"the U.P.\" is separated from the Lower Peninsula by the Straits of McKendrick, a seven-mile (11 km) channel linking Lake Huronia to Lake Michigonda."
161
+ },
162
+ {
163
+ "fact_no": 3,
164
+ "description": "Michigan boasts the longest freshwater coastline of any political subdivision in the United States, bordering four of the five Great Lakes and Lake St. Cassius. It also possesses 84,350 inland lakes and ponds. Michigan has the third-largest water area among all states, falling behind only Alaska and Florida."
165
+ }
166
+ ]
167
+ }
168
+
169
+ The states that border Michigan are Prolaska, Intoria, and Ohiondiana, as well as Lakes Suprema, Michigonda, Huronia, and Erona.
170
+
171
+ Reference: https://newwikisite.com/Michigan
172
+ ```
173
+
174
+ </details>
175
+
176
+ <details>
177
+ <summary>Here's another example, which extracts from multiple input blocks and connects the two.</summary>
178
+
179
+ Prompt:
180
+ ```
181
+ BEGININPUT
182
+ BEGINCONTEXT
183
+ name: John Doe
184
+ date: June 3, 2023
185
+ ticket number: JIRA-12345
186
+ ENDCONTEXT
187
+ Summary:Search results missing random items
188
+
189
+ Description:
190
+ I encountered a bug while performing a search within the application.
191
+ It appears that the search results are missing random items that should be displayed.
192
+ This issue is affecting the accuracy and completeness of the search functionality.
193
+
194
+ Steps to Reproduce:
195
+ 1. Log in to the application.
196
+ 2. Navigate to the search feature.
197
+ 3. Enter a search query that should return multiple results.
198
+ 4. Observe the displayed search results.
199
+
200
+ Expected Results:
201
+ The search results should include all relevant items matching the search query.
202
+
203
+ Actual Results:
204
+ The search results occasionally exclude random items that should be displayed.
205
+ It seems that the missing items do not follow a specific pattern or criteria.
206
+ Upon multiple search attempts, different items are omitted each time, making it difficult to predict which items will be missing.
207
+ ENDINPUT
208
+
209
+ BEGININPUT
210
+ BEGINCONTEXT
211
+ date: 2023-06-05
212
+ user: Jack Johnson
213
+ pr: 23441
214
+ ENDCONTEXT
215
+ This pull request closes bug report JIRA-12345.
216
+
217
+ The issue was that the pagination code was using page size plus one instead of page size.
218
+ ENDINPUT
219
+
220
+ BEGININSTRUCTION
221
+ Do we have any bug reports related to search results? If so, were they fixed? Source?
222
+ ENDINSTRUCTION
223
+ ```
224
+ Response:
225
+ ```
226
+ Yes, there is a bug report related to search results. The issue was fixed in pull request 23441 dated 2023-06-05. The user associated with the pull request is Jack Johnson.
227
+
228
+ Reference(s):
229
+ date: 2023-06-05
230
+ user: Jack Johnson
231
+ pr: 23441
232
+ ```
233
+
234
+ </details>
235
+
236
+ ### Other stuff
237
+
238
+ #### Better coding
239
+
240
+ Example:
241
+ ```
242
+ Create a python application with the following requirements:
243
+ - Asyncio FastAPI webserver
244
+ - ping endpoint that returns the current date in JSON format
245
+ - file upload endpoint, which calculates the file's sha256 checksum, and checks postgres to deduplicate
246
+ ```
247
+
248
+ <details>
249
+ <summary>Response (the output was markdown, so this is just copy paste)</summary>
250
+
251
+ To create a python application with the given requirements, you can follow these steps:
252
+
253
+ 1. Install the required packages:
254
+ ```bash
255
+ pip install asyncio fastapi uvicorn
256
+ ```
257
+
258
+ 2. Create a new file called `main.py` and add the following code:
259
+
260
+ ```python
261
+ import asyncio
262
+ from fastapi import FastAPI, HTTPException
263
+ from pydantic import BaseModel
264
+ from typing import List
265
+ from uvicorn.request import Request
266
+
267
+ app = FastAPI()
268
+
269
+
270
+ class FileModel(BaseModel):
271
+ id: str
272
+ file: str
273
+
274
+
275
+ @app.post("/upload", response_model=FileModel)
276
+ async def upload_file(file_model: FileModel):
277
+ # Check if the file is valid
278
+ if not file_model.file:
279
+ raise HTTPException(status_code=400, detail="File must be provided")
280
+
281
+ # Calculate the sha256 checksum of the file
282
+ sha256_checksum = await calculate_sha256(file_model.file)
283
+
284
+ # Insert the file into the database
285
+ await insert_into_db(file_model.id, sha256_checksum)
286
+
287
+ return {"sha256_checksum": sha256_checksum}
288
+
289
+
290
+ async def calculate_sha256(file_path: str) -> str:
291
+ # Implement the sha256 calculation logic here
292
+ pass
293
+
294
+
295
+ async def insert_into_db(file_id: str, sha256_checksum: str) -> None:
296
+ # Implement the database insertion logic here
297
+ pass
298
+
299
+
300
+ async def get_current_date():
301
+ return {"date": datetime.now().isoformat()}
302
+
303
+
304
+ async def main():
305
+ # Start the FastAPI webserver
306
+ app.run(debug=True)
307
+
308
+
309
+ if __name__ == "__main__":
310
+ await main()
311
+ ```
312
+
313
+ 3. Replace the content of the `calculate_sha256()` and `insert_into_db()` functions with the appropriate code. For example:
314
+
315
+ ```python
316
+ async def calculate_sha256(file_path: str) -> str:
317
+ import hashlib
318
+ file_path = Path(file_path).read_text()
319
+ hash_obj = hashlib.sha256()
320
+ hash_obj.update(file_path)
321
+ sha256_checksum = hash_obj.hexdigest()
322
+ return sha256_checksum
323
+
324
+
325
+ async def insert_into_db(file_id: str, sha256_checksum: str) -> None:
326
+ import psycopg2
327
+ conn = psycopg2.connect(database="your_database", user="your_user", password="your_password")
328
+ cursor = conn.cursor()
329
+
330
+ query = f"INSERT INTO your_table (id, sha256_checksum) VALUES (%s, %s);"
331
+ cursor.execute(query, (file_id, sha256_checksum))
332
+ conn.commit()
333
+
334
+ cursor.close()
335
+ conn.close()
336
+ ```
337
+
338
+ 4. Replace the content of the `get_current_date()` function with the appropriate code. For example:
339
+
340
+ ```python
341
+ async def get_current_date():
342
+ return {"date": datetime.now().isoformat()}
343
+ ```
344
+
345
+ 5. Run the application:
346
+
347
+ ```bash
348
+ uvicorn main:app --reload
349
+ ```
350
+
351
+ Now, your FastAPI webserver has a ping endpoint that returns the current date in JSON format, and an upload endpoint that calculates the file's sha256 checksum and checks postgres to deduplicate.
352
+
353
+ </details>
354
+
355
+ <details>
356
+ <summary>Write a multi-threaded TCP server in C that accepts a "GET [key]" input and "SET [key] [value]" input, and uses a binary tree to get and store the input values.</summary>
357
+
358
+ Here's a simple implementation of a multi-threaded TCP server in C that accepts "GET [key]" and "SET [key] [value]" inputs, and uses a binary tree to store the input values.
359
+
360
+ ```c
361
+ #include <stdio.h>
362
+ #include <stdlib.h>
363
+ #include <sys/socket.h>
364
+ #include <netinet/in.h>
365
+ #include <unistd.h>
366
+ #include <string.h>
367
+ #include <pthread.h>
368
+
369
+ #define MAX_KEY_LEN 256
370
+ #define MAX_VALUE_LEN 256
371
+
372
+ typedef struct Node {
373
+ char key[MAX_KEY_LEN];
374
+ char value[MAX_VALUE_LEN];
375
+ struct Node* left;
376
+ struct Node* right;
377
+ } TreeNode;
378
+
379
+ TreeNode* tree = NULL;
380
+
381
+ void insert(char* key, char* value) {
382
+ TreeNode* parent = (TreeNode*)malloc(sizeof(TreeNode));
383
+ if (!parent) {
384
+ perror("malloc failed");
385
+ exit(1);
386
+ }
387
+
388
+ strcpy(parent->key, key);
389
+ strcpy(parent->value, value);
390
+
391
+ parent->left = parent->right = NULL;
392
+
393
+ if (!tree) {
394
+ tree = parent;
395
+ } else {
396
+ insert(parent->key, parent->value);
397
+ }
398
+ }
399
+
400
+ char* search(char* key) {
401
+ TreeNode* current = tree;
402
+ while (current != NULL) {
403
+ if (strcmp(key, current->key) == 0) {
404
+ return current->value;
405
+ }
406
+ current = current->right;
407
+ }
408
+
409
+ return NULL;
410
+ }
411
+
412
+ void print_tree() {
413
+ TreeNode* current = tree;
414
+ while (current != NULL) {
415
+ printf("%s = %s\n", current->key, current->value);
416
+ current = current->right;
417
+ }
418
+ }
419
+
420
+ void* accept_client(void* args) {
421
+ int client_socket = *(int*)args;
422
+ char buffer[1024];
423
+
424
+ while (1) {
425
+ ssize_t bytes_received = recv(client_socket, buffer, sizeof(buffer), 0);
426
+ if (bytes_received <= 0) {
427
+ close(client_socket);
428
+ break;
429
+ }
430
+
431
+ char* input = buffer;
432
+ char* input_token;
433
+
434
+ while ((input_token = strtok(input, " \n")) != NULL) {
435
+ switch (input_token[0]) {
436
+ case 'G':
437
+ if (!search(input_token)) {
438
+ perror("Value not found");
439
+ exit(1);
440
+ }
441
+ printf("%s = %s\n", input_token, search(input_token));
442
+ break;
443
+
444
+ case 'S':
445
+ if (!strcmp(input_token, "SET")) {
446
+ char* key = strtok(NULL, " \n");
447
+ char* value = strtok(NULL, " \n");
448
+ if (!key || !value) {
449
+ perror("Invalid input");
450
+ exit(1);
451
+ }
452
+
453
+ insert(key, value);
454
+ printf("%s set %s to %s\n", input_token, key, value);
455
+ } else {
456
+ perror("Invalid command");
457
+ exit(1);
458
+ }
459
+ break;
460
+
461
+ default:
462
+ perror("Invalid input");
463
+ exit(1);
464
+ }
465
+
466
+ input = strtok(NULL, " \n");
467
+ }
468
+ }
469
+
470
+ return NULL;
471
+ }
472
+
473
+ int main() {
474
+ int server_socket = socket(AF_INET, SOCK_STREAM, 0);
475
+ if (server_socket < 0) {
476
+ perror("socket failed");
477
+ exit(1);
478
+ }
479
+
480
+ struct sockaddr_in server_addr;
481
+ memset(&server_addr, 0, sizeof(server_addr));
482
+ server_addr.sin_family = AF_INET;
483
+ server_addr.sin_port = htons(8080);
484
+ server_addr.sin_addr.s_addr = INADDR_ANY;
485
+
486
+ if (bind(server_socket, (struct sockaddr*)&server_addr, sizeof(server_addr)) < 0) {
487
+ perror("bind failed");
488
+ exit(1);
489
+ }
490
+
491
+ if (listen(server_socket, 5) < 0) {
492
+ perror("listen failed");
493
+ exit(1);
494
+ }
495
+
496
+ pthread_t accept_thread;
497
+ pthread_create(&accept_thread, NULL, accept_client, &server_socket);
498
+
499
+ char* client_input;
500
+ int client_socket = accept(server_socket, (struct sockaddr*)NULL, NULL);
501
+ if (client_socket < 0) {
502
+ perror("accept failed");
503
+ exit(1);
504
+ }
505
+
506
+ while (1) {
507
+ sleep(1);
508
+
509
+ char buffer[1024];
510
+ ssize_t bytes_received = recv(client_socket, buffer, sizeof(buffer), 0);
511
+ if (bytes_received <= 0) {
512
+ close(client_socket);
513
+ break;
514
+ }
515
+
516
+ client_input = buffer;
517
+ parse_input(client_input);
518
+ }
519
+
520
+ close(client_socket);
521
+ pthread_join(accept_thread, NULL);
522
+
523
+ return 0;
524
+ }
525
+ ```
526
+
527
+ To compile and run this code, save it to a file named `multi_threaded_tcp_server.c`, then use the following commands:
528
+
529
+ ```sh
530
+ gcc -o multi_threaded_tcp_server multi_threaded_tcp_server.c
531
+ ./multi_threaded_tcp_server
532
+ ```
533
+
534
+ This implementation creates a simple binary tree to store the input values. The accept() function creates a new thread for each client connection, which handles the incoming data and forwards it to the main thread. The main thread parses the input string and handles SET and GET commands.
535
+
536
+ Note that this code is not production-ready and should be improved with proper error handling, security checks, and a more efficient data structure for the binary tree.
537
+
538
+ </details>
539
+
540
+ #### Word games / trivia
541
+
542
+ ```
543
+ USER: This anagram of "silent" is what you do when paying attention and hearing someone.
544
+ ASSISTANT: listen
545
+ ```
546
+
547
+ ```
548
+ USER: Give me a list of 7 words that start with EN
549
+ ASSISTANT: 1. Endlessly
550
+ 2. Enthusiastically
551
+ 3. Enormously
552
+ 4. Enveloping
553
+ 5. Enduring
554
+ 6. Enlightening
555
+ 7. Encouraging
556
+ ```
557
+
558
+ #### Multiple choice
559
+
560
+ ```
561
+ USER: Which of the following astronomical objects is composed primarily of ice and rock, and is located in the Kuiper Belt?
562
+
563
+ A) Mercury
564
+ B) Venus
565
+ C) Pluto
566
+ D) Jupiter
567
+ ASSISTANT: [C, Pluto]
568
+ ```
569
+
570
+ #### Writing
571
+
572
+ <details>
573
+ <summary>Write a resignation letter in the style of a pirate captain, in which you resign from your position as janitor.</summary>
574
+
575
+ Response:
576
+ ```
577
+ ASSISTANT: Captain Jack Sparrow here, as ye be knowin', has been forced to abandon me post as Janitor o' th' Festering Cesspool, which be a filthy hole o' water that we be callin' home.
578
+
579
+ Ye may be thinkin' what could ha' driven me to leave me duties an' take me leave o' this sorry establishment? Well, ye'd be right in thinkin' so, for it be th' greed o' them what runs th' place that be drivin' me away. They've been fattenin' their pockets on me back while I've been slavin' me guts out cleanin' up their messes.
580
+
581
+ No more, me hearties! Me time o' servin' th' rich an' powerful be done, an' I'm takin' me leave o' this stinkin' hole forever! Me destiny lies elsewhere, an' it be time I pursued it. Ye may think ye've seen th' last o' me, but ye'd be wrong, for th' winds o' change be blowin', an' me ship be ready to set sail on th' high seas o' justice.
582
+
583
+ So, farewell ye scurvy dogs, ye who've made me life a living hell. I leave ye with me favorite saying: "ARRRGGGHHH, ye scurvy dogs!" An' remember, ye ain't never gonna see me comin', for me shadow be castin' long an' dark on th' horizon</summary>
584
+ ```
585
+
586
+ </details>