mwitiderrick commited on
Commit
05a0ae8
·
1 Parent(s): 940ab47

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -1
README.md CHANGED
@@ -12,7 +12,7 @@ formatted_prompt = f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistan
12
 
13
  model = TextGeneration(model="hf:nm-testing/TinyLlama-1.1B-Chat-v0.4-pruned50-quant")
14
  print(model(formatted_prompt, max_new_tokens=300).generations[0].text)
15
-
16
  """
17
  Banana bread is a delicious and healthy recipe that is easy to make. Here is a recipe for banana bread:
18
 
@@ -45,7 +45,26 @@ Step 4: Pour the batter into the prepared pan.
45
  Step 5
46
  """
47
  ```
 
48
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  ## One-shot and Export
50
 
51
  ```
 
12
 
13
  model = TextGeneration(model="hf:nm-testing/TinyLlama-1.1B-Chat-v0.4-pruned50-quant")
14
  print(model(formatted_prompt, max_new_tokens=300).generations[0].text)
15
+ ```
16
  """
17
  Banana bread is a delicious and healthy recipe that is easy to make. Here is a recipe for banana bread:
18
 
 
45
  Step 5
46
  """
47
  ```
48
+ from deepsparse import TextGeneration
49
 
50
+ prompt = "How to get in a good university?"
51
+ formatted_prompt = f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
52
+
53
+ model = TextGeneration(model="hf:nm-testing/TinyLlama-1.1B-Chat-v0.4-pruned50-quant")
54
+ print(model(formatted_prompt, max_new_tokens=200).generations[0].text)
55
+ ```
56
+ """
57
+ There are several factors to consider when choosing a university:
58
+
59
+ 1. Location: Where is the university located? Is it close to a city where you want to live?
60
+ 2. Faculty: What faculty members are teaching at the university? Is there a specialty you want to pursue?
61
+ 3. Tuition: How much does the university cost?
62
+ 4. Amenities: What amenities does the university offer? Is there a library, a gym, or other resources?
63
+ 5. Communication: How easy is it to get to campus? Is there a campus-wide bus system?
64
+ 6. Jobs: What jobs are available at the university? Is there a job market?
65
+
66
+ It's important to consider the location, faculty, and amenities when choosing a university. It's also important to research the job market and the salaries for jobs in the university. It's also important to research the job market and the
67
+ """
68
  ## One-shot and Export
69
 
70
  ```