Text Generation
Transformers
Safetensors
GGUF
stablelm
HelpingAI
Emotionally Intelligent
EQ
conversational
imatrix
Instructions to use OEvortex/HelpingAI-3B-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OEvortex/HelpingAI-3B-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OEvortex/HelpingAI-3B-chat") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("OEvortex/HelpingAI-3B-chat") model = AutoModelForCausalLM.from_pretrained("OEvortex/HelpingAI-3B-chat", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use OEvortex/HelpingAI-3B-chat with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf OEvortex/HelpingAI-3B-chat:IQ4_XS # Run inference directly in the terminal: llama cli -hf OEvortex/HelpingAI-3B-chat:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf OEvortex/HelpingAI-3B-chat:IQ4_XS # Run inference directly in the terminal: llama cli -hf OEvortex/HelpingAI-3B-chat:IQ4_XS
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf OEvortex/HelpingAI-3B-chat:IQ4_XS # Run inference directly in the terminal: ./llama-cli -hf OEvortex/HelpingAI-3B-chat:IQ4_XS
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf OEvortex/HelpingAI-3B-chat:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama-cli -hf OEvortex/HelpingAI-3B-chat:IQ4_XS
Use Docker
docker model run hf.co/OEvortex/HelpingAI-3B-chat:IQ4_XS
- LM Studio
- Jan
- vLLM
How to use OEvortex/HelpingAI-3B-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OEvortex/HelpingAI-3B-chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OEvortex/HelpingAI-3B-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OEvortex/HelpingAI-3B-chat:IQ4_XS
- SGLang
How to use OEvortex/HelpingAI-3B-chat with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "OEvortex/HelpingAI-3B-chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OEvortex/HelpingAI-3B-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "OEvortex/HelpingAI-3B-chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OEvortex/HelpingAI-3B-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use OEvortex/HelpingAI-3B-chat with Ollama:
ollama run hf.co/OEvortex/HelpingAI-3B-chat:IQ4_XS
- Unsloth Desktop
- Docker Model Runner
How to use OEvortex/HelpingAI-3B-chat with Docker Model Runner:
docker model run hf.co/OEvortex/HelpingAI-3B-chat:IQ4_XS
- Lemonade
How to use OEvortex/HelpingAI-3B-chat with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull OEvortex/HelpingAI-3B-chat:IQ4_XS
Run and chat with the model
lemonade run user.HelpingAI-3B-chat-IQ4_XS
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -77,7 +77,43 @@ inputs = tokenizer(prompt, return_tensors="pt", return_attention_mask=False).to(
|
|
| 77 |
# Here comes the fun part! Let's unleash the power of HelpingAI-3B to generate some awesome text
|
| 78 |
generated_text = model.generate(**inputs, max_length=3084, top_p=0.95, do_sample=True, temperature=0.6, use_cache=True, streamer=streamer)
|
| 79 |
```
|
|
|
|
| 80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
## Example Dialogue
|
| 82 |
> Express joy and excitement about visiting a new place.
|
| 83 |
|
|
|
|
| 77 |
# Here comes the fun part! Let's unleash the power of HelpingAI-3B to generate some awesome text
|
| 78 |
generated_text = model.generate(**inputs, max_length=3084, top_p=0.95, do_sample=True, temperature=0.6, use_cache=True, streamer=streamer)
|
| 79 |
```
|
| 80 |
+
*Directly using this model from GGUF*
|
| 81 |
|
| 82 |
+
```python
|
| 83 |
+
%pip install -U 'webscout[local]'
|
| 84 |
+
|
| 85 |
+
from webscout.Local.utils import download_model
|
| 86 |
+
from webscout.Local.model import Model
|
| 87 |
+
from webscout.Local.thread import Thread
|
| 88 |
+
from webscout.Local import formats
|
| 89 |
+
from webscout.Local.samplers import SamplerSettings
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
# 1. Download the model
|
| 93 |
+
repo_id = "OEvortex/HelpingAI-3B-chat"
|
| 94 |
+
filename = "helpingai-3b-chat-q4_k_m.gguf"
|
| 95 |
+
model_path = download_model(repo_id, filename, token='') # Replace with your Hugging Face token also you can keep it empty
|
| 96 |
+
|
| 97 |
+
# 2. Load the model
|
| 98 |
+
model = Model(model_path, n_gpu_layers=20)
|
| 99 |
+
|
| 100 |
+
# 3. Define your system prompt
|
| 101 |
+
system_prompt = "You are HelpingAI a emotional AI always answer my question in HelpingAI style and to the point"
|
| 102 |
+
|
| 103 |
+
# 4. Create a custom chatml format with your system prompt
|
| 104 |
+
custom_chatml = formats.chatml.copy()
|
| 105 |
+
custom_chatml['system_content'] = system_prompt
|
| 106 |
+
|
| 107 |
+
# 5. Define your sampler settings (optional)
|
| 108 |
+
sampler = SamplerSettings(temp=0.7, top_p=0.9) # Adjust these values as needed
|
| 109 |
+
|
| 110 |
+
# 6. Create a Thread with the custom format and sampler
|
| 111 |
+
thread = Thread(model, custom_chatml, sampler=sampler)
|
| 112 |
+
|
| 113 |
+
# 7. Start interacting with the model
|
| 114 |
+
thread.interact(header="🌟 HelpingAI-3B-chat: Emotionally Intelligent SLM 🚀", color=True)
|
| 115 |
+
|
| 116 |
+
```
|
| 117 |
## Example Dialogue
|
| 118 |
> Express joy and excitement about visiting a new place.
|
| 119 |
|