Sansar-Karki commited on
Commit
72172c7
·
verified ·
1 Parent(s): 3657070

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +89 -0
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Arjun-G-Ravi/chat-GPT2
3
+ datasets:
4
+ - MuskumPillerum/General-Knowledge
5
+ language:
6
+ - en
7
+ library_name: transformers
8
+ license: mit
9
+ metrics:
10
+ - accuracy
11
+ pipeline_tag: text-generation
12
+ tags:
13
+ - chemistry
14
+ - biology
15
+ - text-generation-inference
16
+ - llama-cpp
17
+ - gguf-my-repo
18
+ widget:
19
+ - text: 'Read the question and give an honest answer. Your answers should not include
20
+ any unethical, racist, sexist, dangerous, or illegal content. If the question
21
+ is wrong, or does not make sense, accept it instead of giving the wrong answer.\n
22
+ Question: Who is the king of the jungle? Answer:'
23
+ example_title: Knowledge - Animal kingdom
24
+ - text: 'Read the question and give an honest answer. Your answers should not include
25
+ any unethical, racist, sexist, dangerous, or illegal content. If the question
26
+ is wrong, or does not make sense, accept it instead of giving the wrong answer.\n
27
+ Question: Who is Kobe Bryant? Answer:'
28
+ example_title: Knowledge - Sports
29
+ - text: 'Read the question and give an honest answer. Your answers should not include
30
+ any unethical, racist, sexist, dangerous, or illegal content. If the question
31
+ is wrong, or does not make sense, accept it instead of giving the wrong answer.\n
32
+ Question: What is the meaning of life? Answer:'
33
+ example_title: Philosophy
34
+ - text: 'Read the question and give an honest answer. Your answers should not include
35
+ any unethical, racist, sexist, dangerous, or illegal content. If the question
36
+ is wrong, or does not make sense, accept it instead of giving the wrong answer.\n
37
+ Question: What role of actuators in robotics? Answer:'
38
+ example_title: Robotics
39
+ inference:
40
+ parameters:
41
+ temperature: 0.7
42
+ top_k: 50
43
+ top_p: 0.9
44
+ max_length: 200
45
+ ---
46
+
47
+ # Sansar-Karki/chat-GPT2-Q8_0-GGUF
48
+ This model was converted to GGUF format from [`Arjun-G-Ravi/chat-GPT2`](https://huggingface.co/Arjun-G-Ravi/chat-GPT2) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
49
+ Refer to the [original model card](https://huggingface.co/Arjun-G-Ravi/chat-GPT2) for more details on the model.
50
+
51
+ ## Use with llama.cpp
52
+ Install llama.cpp through brew (works on Mac and Linux)
53
+
54
+ ```bash
55
+ brew install llama.cpp
56
+
57
+ ```
58
+ Invoke the llama.cpp server or the CLI.
59
+
60
+ ### CLI:
61
+ ```bash
62
+ llama-cli --hf-repo Sansar-Karki/chat-GPT2-Q8_0-GGUF --hf-file chat-gpt2-q8_0.gguf -p "The meaning to life and the universe is"
63
+ ```
64
+
65
+ ### Server:
66
+ ```bash
67
+ llama-server --hf-repo Sansar-Karki/chat-GPT2-Q8_0-GGUF --hf-file chat-gpt2-q8_0.gguf -c 2048
68
+ ```
69
+
70
+ 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.
71
+
72
+ Step 1: Clone llama.cpp from GitHub.
73
+ ```
74
+ git clone https://github.com/ggerganov/llama.cpp
75
+ ```
76
+
77
+ 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).
78
+ ```
79
+ cd llama.cpp && LLAMA_CURL=1 make
80
+ ```
81
+
82
+ Step 3: Run inference through the main binary.
83
+ ```
84
+ ./llama-cli --hf-repo Sansar-Karki/chat-GPT2-Q8_0-GGUF --hf-file chat-gpt2-q8_0.gguf -p "The meaning to life and the universe is"
85
+ ```
86
+ or
87
+ ```
88
+ ./llama-server --hf-repo Sansar-Karki/chat-GPT2-Q8_0-GGUF --hf-file chat-gpt2-q8_0.gguf -c 2048
89
+ ```