mgoin commited on
Commit
f39550e
1 Parent(s): 085a14f

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -0
README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - deepsparse
4
+ ---
5
+
6
+
7
+ Install:
8
+ ```
9
+ pip install deepsparse[llm]==1.7
10
+ ```
11
+
12
+ Usage:
13
+ ```
14
+ >>> from deepsparse import TextGeneration
15
+ >>> model = TextGeneration("nm-testing/granite-7b-lab-pruned50-quant-ds")
16
+ >>> model("Hello my name is")
17
+ TextGenerationOutput(
18
+ created=datetime.datetime(2024, 5, 1, 17, 41, 13, 176274),
19
+ prompts='Hello my name is',
20
+ generations=[GeneratedText(text='Alex and I am a senior in high school. I am taking a dual credit biology class this semester and I really need help with the lab. I am having trouble with the lab on dissociation and I was hoping that you could help me. The lab requires that we set up a reaction between a strong acid and a strong base and measure the pH of the solution at various points in the reaction.\n\nHere is a summary of the lab that I was given:\n\n1', score=None, finished=True, finished_reason='max_new_tokens')],
21
+ input_tokens=None
22
+ )
23
+ ```