Text Generation
Transformers
English
llm-rs
ggml
Inference Endpoints
danforbes commited on
Commit
9f8e847
1 Parent(s): 10fb130

Create README_TEMPLATE.md

Browse files
Files changed (1) hide show
  1. README_TEMPLATE.md +53 -0
README_TEMPLATE.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ tags:
6
+ - llm-rs
7
+ - ggml
8
+ pipeline_tag: text-generation
9
+ datasets:
10
+ - nomic-ai/gpt4all-j-prompt-generations
11
+ ---
12
+
13
+ # GGML converted version of [Nomic AI](https://huggingface.co/nomic-ai) GPT4All-J-v1.0 models
14
+
15
+ ## Description
16
+
17
+ An Apache-2 licensed chatbot trained over a massive curated corpus of assistant interactions including word problems, multi-turn dialogue, code, poems, songs, and stories.
18
+
19
+
20
+ ## Converted Models
21
+ $MODELS$
22
+
23
+ ## Usage
24
+
25
+ ### Python via [llm-rs](https://github.com/LLukas22/llm-rs-python):
26
+
27
+ #### Installation
28
+ Via pip: `pip install llm-rs`
29
+
30
+ #### Run inference
31
+ ```python
32
+ from llm_rs import AutoModel
33
+
34
+ #Load the model, define any model you like from the list above as the `model_file`
35
+ model = AutoModel.from_pretrained("rustformers/gpt4all-j-ggml",model_file="gpt4all-j-q4_0-ggjt.bin")
36
+
37
+ #Generate
38
+ print(model.generate("The meaning of life is"))
39
+ ```
40
+
41
+ ### Rust via [Rustformers/llm](https://github.com/rustformers/llm):
42
+
43
+ #### Installation
44
+ ```
45
+ git clone --recurse-submodules https://github.com/rustformers/llm.git
46
+ cd llm
47
+ cargo build --release
48
+ ```
49
+
50
+ #### Run inference
51
+ ```
52
+ cargo run --release -- gptneox infer -m path/to/model.bin -p "Tell me how cool the Rust programming language is:"
53
+ ```