Abhaykoul commited on
Commit
1584c37
1 Parent(s): d2c7b99

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -9
README.md CHANGED
@@ -78,20 +78,35 @@ from webscout.Local.utils import download_model
78
  from webscout.Local.model import Model
79
  from webscout.Local.thread import Thread
80
  from webscout.Local import formats
81
- from webscout.Local import samplers
 
 
 
 
 
82
  # 1. Download the model
83
- repo_id = "OEvortex/HelpingAI-9B"
84
- filename = "helpingai-9b.Q4_0.gguf"
85
- model_path = download_model(repo_id, filename)
86
 
87
  # 2. Load the model
88
- model = Model(model_path, n_gpu_layers=48)
 
 
 
 
 
 
 
 
 
 
89
 
90
- # 3. Create a Thread for conversation
91
- thread = Thread(model, formats.chatml, samplers.TikTokenSampling)
92
 
93
- # 4. Start interacting with the model
94
- thread.interact()
95
  ```
96
  ## Example Dialogue
97
  > Express joy and excitement about visiting a new place.
 
78
  from webscout.Local.model import Model
79
  from webscout.Local.thread import Thread
80
  from webscout.Local import formats
81
+ from webscout.Local.samplers import SamplerSettings
82
+
83
+ from dotenv import load_dotenv; load_dotenv()
84
+ import os
85
+
86
+
87
  # 1. Download the model
88
+ repo_id = "OEvortex/HelpingAI-9B"
89
+ filename = "helpingai-9b.Q4_0.gguf"
90
+ model_path = download_model(repo_id, filename, os.environ.get("hf_token"))
91
 
92
  # 2. Load the model
93
+ model = Model(model_path, n_gpu_layers=0) 
94
+
95
+ # 3. Define your system prompt
96
+ system_prompt = "You are HelpingAI a emotional AI always answer my question in HelpingAI style"
97
+
98
+ # 4. Create a custom chatml format with your system prompt
99
+ custom_chatml = formats.chatml.copy()
100
+ custom_chatml['system_content'] = system_prompt
101
+
102
+ # 5. Define your sampler settings (optional)
103
+ sampler = SamplerSettings(temp=0.7, top_p=0.9)  # Adjust these values as needed
104
 
105
+ # 6. Create a Thread with the custom format and sampler
106
+ thread = Thread(model, custom_chatml, sampler=sampler)
107
 
108
+ # 7. Start interacting with the model
109
+ thread.interact(header="🌟 HelpingAI-9B: Emotionally Intelligent Conversational AI 🚀", color=True)
110
  ```
111
  ## Example Dialogue
112
  > Express joy and excitement about visiting a new place.