Upload 2 files
Browse files- README_TEMPLATE.md +51 -0
- config.json +1 -0
README_TEMPLATE.md
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-sa-4.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
tags:
|
6 |
+
- llm-rs
|
7 |
+
- ggml
|
8 |
+
pipeline_tag: text-generation
|
9 |
+
---
|
10 |
+
|
11 |
+
# GGML converted version of [StabilityAI](https://huggingface.co/stabilityai)'s StableLM models
|
12 |
+
|
13 |
+
## Description
|
14 |
+
|
15 |
+
`StableLM-Base-Alpha` is a suite of 3B and 7B parameter decoder-only language models pre-trained on a diverse collection of English and Code datasets with a sequence length of 4096 to push beyond the context window limitations of existing open-source language models.
|
16 |
+
|
17 |
+
|
18 |
+
## Converted Models
|
19 |
+
$MODELS$
|
20 |
+
|
21 |
+
## Usage
|
22 |
+
|
23 |
+
### Python via [llm-rs](https://github.com/LLukas22/llm-rs-python):
|
24 |
+
|
25 |
+
#### Installation
|
26 |
+
Via pip: `pip install llm-rs`
|
27 |
+
|
28 |
+
#### Run inference
|
29 |
+
```python
|
30 |
+
from llm_rs import AutoModel
|
31 |
+
|
32 |
+
#Load the model, define any model you like from the list above as the `model_file`
|
33 |
+
model = AutoModel.from_pretrained("rustformers/stablelm-ggml",model_file="stablelm-base-alpha-3b-q4_0-ggjt.bin")
|
34 |
+
|
35 |
+
#Generate
|
36 |
+
print(model.generate("The meaning of life is"))
|
37 |
+
```
|
38 |
+
|
39 |
+
### Rust via [Rustformers/llm](https://github.com/rustformers/llm):
|
40 |
+
|
41 |
+
#### Installation
|
42 |
+
```
|
43 |
+
git clone --recurse-submodules https://github.com/rustformers/llm.git
|
44 |
+
cd llm
|
45 |
+
cargo build --release
|
46 |
+
```
|
47 |
+
|
48 |
+
#### Run inference
|
49 |
+
```
|
50 |
+
cargo run --release -- gptneox infer -m path/to/model.bin -p "Tell me how cool the Rust programming language is:"
|
51 |
+
```
|
config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"repo_type": "GGML"}
|