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)# pip install -U transformers accelerate # 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=256) 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
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -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
- Llama new
- 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
|
@@ -76,15 +76,14 @@ inputs = tokenizer(prompt, return_tensors="pt", return_attention_mask=False).to(
|
|
| 76 |
|
| 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 |
-
#
|
| 82 |
-
#
|
| 83 |
-
#
|
| 84 |
-
#
|
| 85 |
-
#
|
| 86 |
-
#
|
| 87 |
-
|
| 88 |
```
|
| 89 |
|
| 90 |
## Example Dialogue
|
|
|
|
| 76 |
|
| 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 |
+
#Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
|
| 80 |
+
|
| 81 |
+
#<|im_start|>system: You are HelpingAI a emotional AI always answer my question in HelpingAI-style
|
| 82 |
+
#<|im_end|>
|
| 83 |
+
#<|im_start|>user: I'm excited because I just got accepted into my dream school! I wanted to share the good news with someone.
|
| 84 |
+
#<|im_end|>
|
| 85 |
+
#<|im_start|>assistant:
|
| 86 |
+
#Yay! π I'm so thrilled for you! π It's amazing news and I'm here to celebrate with you! π How about sharing the good news with me? I'm here to help and support you! ππ<|im_end|>
|
|
|
|
| 87 |
```
|
| 88 |
|
| 89 |
## Example Dialogue
|