antoste commited on
Commit
e1f9838
·
verified ·
1 Parent(s): f4171e0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +85 -0
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Locutusque/gpt2-xl-conversational
3
+ datasets:
4
+ - Locutusque/InstructMix
5
+ language:
6
+ - en
7
+ license: mit
8
+ metrics:
9
+ - bleu
10
+ - perplexity
11
+ - loss
12
+ - accuracy
13
+ pipeline_tag: text-generation
14
+ tags:
15
+ - llama-cpp
16
+ - gguf-my-repo
17
+ widget:
18
+ - text: '<|USER|> Design a Neo4j database and Cypher function snippet to Display Extreme
19
+ Dental hygiene: Using Mouthwash for Analysis for Beginners. Implement if/else
20
+ or switch/case statements to handle different conditions related to the Consent.
21
+ Provide detailed comments explaining your control flow and the reasoning behind
22
+ each decision. <|ASSISTANT|> '
23
+ - text: '<|USER|> Write me a story about a magical place. <|ASSISTANT|> '
24
+ - text: '<|USER|> Write me an essay about the life of George Washington <|ASSISTANT|> '
25
+ - text: '<|USER|> Solve the following equation 2x + 10 = 20 <|ASSISTANT|> '
26
+ - text: '<|USER|> Craft me a list of some nice places to visit around the world. <|ASSISTANT|> '
27
+ - text: '<|USER|> How to manage a lazy employee: Address the employee verbally. Don''t
28
+ allow an employee''s laziness or lack of enthusiasm to become a recurring issue.
29
+ Tell the employee you''re hoping to speak with them about workplace expectations
30
+ and performance, and schedule a time to sit down together. Question: To manage
31
+ a lazy employee, it is suggested to talk to the employee. True, False, or Neither?
32
+ <|ASSISTANT|> '
33
+ inference:
34
+ parameters:
35
+ temperature: 0.8
36
+ do_sample: true
37
+ top_p: 0.14
38
+ top_k: 41
39
+ max_new_tokens: 250
40
+ repetition_penalty: 1.176
41
+ ---
42
+
43
+ # antoste/gpt2-xl-conversational-Q4_K_M-GGUF
44
+ This model was converted to GGUF format from [`Locutusque/gpt2-xl-conversational`](https://huggingface.co/Locutusque/gpt2-xl-conversational) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
45
+ Refer to the [original model card](https://huggingface.co/Locutusque/gpt2-xl-conversational) for more details on the model.
46
+
47
+ ## Use with llama.cpp
48
+ Install llama.cpp through brew (works on Mac and Linux)
49
+
50
+ ```bash
51
+ brew install llama.cpp
52
+
53
+ ```
54
+ Invoke the llama.cpp server or the CLI.
55
+
56
+ ### CLI:
57
+ ```bash
58
+ llama-cli --hf-repo antoste/gpt2-xl-conversational-Q4_K_M-GGUF --hf-file gpt2-xl-conversational-q4_k_m.gguf -p "The meaning to life and the universe is"
59
+ ```
60
+
61
+ ### Server:
62
+ ```bash
63
+ llama-server --hf-repo antoste/gpt2-xl-conversational-Q4_K_M-GGUF --hf-file gpt2-xl-conversational-q4_k_m.gguf -c 2048
64
+ ```
65
+
66
+ Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
67
+
68
+ Step 1: Clone llama.cpp from GitHub.
69
+ ```
70
+ git clone https://github.com/ggerganov/llama.cpp
71
+ ```
72
+
73
+ Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
74
+ ```
75
+ cd llama.cpp && LLAMA_CURL=1 make
76
+ ```
77
+
78
+ Step 3: Run inference through the main binary.
79
+ ```
80
+ ./llama-cli --hf-repo antoste/gpt2-xl-conversational-Q4_K_M-GGUF --hf-file gpt2-xl-conversational-q4_k_m.gguf -p "The meaning to life and the universe is"
81
+ ```
82
+ or
83
+ ```
84
+ ./llama-server --hf-repo antoste/gpt2-xl-conversational-Q4_K_M-GGUF --hf-file gpt2-xl-conversational-q4_k_m.gguf -c 2048
85
+ ```