dev-slx commited on
Commit
e8cefd8
·
verified ·
1 Parent(s): 83ea553

Delete README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -56
README.md DELETED
@@ -1,56 +0,0 @@
1
- # SliceX AI™ ELM (Efficient Language Models)
2
- This repository contains code to run our ELM models.
3
-
4
- Models are located in the "models" folder. ELM models in this repository comes in three sizes (elm-1.0, elm-0.75 and elm-0.25) and supports the following use-cases.
5
- - news_classification
6
- - toxicity_detection
7
- - news_content_generation
8
- - news_summarization
9
-
10
- ## Download ELM repo with model files
11
- ```bash
12
- sudo apt-get intall git-lfs
13
- git lfs install
14
- git clone <library_path>
15
- ```
16
- (Optional) Installing git-lfs without sudo,
17
- ```bash
18
- wget https://github.com/git-lfs/git-lfs/releases/download/v3.2.0/git-lfs-linux-amd64-v3.2.0.tar.gz
19
- tar -xzf git-lfs-linux-amd64-v3.2.0.tar.gz
20
- PATH=$PATH:/<absolute-path>/git-lfs-3.2.0/
21
- git lfs install
22
- ```
23
-
24
-
25
- ## (Optional) Setup docker
26
- ```bash
27
- docker run --gpus all -it --shm-size=8g --name elm_inference --ulimit memlock=-1 --rm -v <elm_code_path>:/elm_code nvcr.io/nvidia/pytorch:23.09-py3
28
- ```
29
-
30
- ## Installation
31
- ```bash
32
- cd <elm_code>
33
- pip install -r requirements.txt
34
- ```
35
-
36
- ## How to use - Run ELM on a sample task (e.g., news classification)
37
- ```bash
38
- python run.py <elm-model-directory>
39
- E.g. python run.py models/elm-0.75_news_classification
40
- ```
41
- Prompts for the specific tasks can be found in the corresponding checkpoint directory. See an example below in the form of `models/elm-0.75_news_classification/example_prompts.json`.
42
- ```json
43
- {
44
- "inputs": ["GM May Close Plant in Europe DETROIT (Reuters) - General Motors Corp. &lt;A HREF=\"http://www.investor.reuters.com/FullQuote.aspx?ticker=GM.N target=/stocks/quickinfo/fullquote\"&gt;GM.N&lt;/A&gt; will likely cut some jobs in Europe and may close a plant there as part of a restructuring plan under development to try to return the region to profitability, the U.S. automaker said on Wednesday."],
45
- "template": "[INST]Below is a news article. Please classify it under one of the following classes (World, Business, Sports, Sci/Tech). Please format your response as a JSON payload.\n\n### Article: {input}\n\n### JSON Response:[/INST]"
46
- }
47
- ```
48
-
49
- Running the above command returns the following response
50
-
51
- ```json
52
- {
53
- "prompt": "[INST]Below is a news article. Please classify it under one of the following classes (World, Business, Sports, Sci/Tech). Please format your response as a JSON payload.\n\n### Article: GM May Close Plant in Europe DETROIT (Reuters) - General Motors Corp. &lt;A HREF=\"http://www.investor.reuters.com/FullQuote.aspx?ticker=GM.N target=/stocks/quickinfo/fullquote\"&gt;GM.N&lt;/A&gt; will likely cut some jobs in Europe and may close a plant there as part of a restructuring plan under development to try to return the region to profitability, the U.S. automaker said on Wednesday.\n\n### JSON Response:[/INST]",
54
- "response": "{'text_label': 'Business'}"
55
- }
56
- ```