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
Delete configuration_HelpingAI.py
Browse files- configuration_HelpingAI.py +0 -60
configuration_HelpingAI.py
DELETED
|
@@ -1,60 +0,0 @@
|
|
| 1 |
-
""" HelpingAI model configuration"""
|
| 2 |
-
|
| 3 |
-
from transformers import PretrainedConfig
|
| 4 |
-
from transformers.utils import logging
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
logger = logging.get_logger(__name__)
|
| 8 |
-
|
| 9 |
-
class HelpingAIConfig(PretrainedConfig):
|
| 10 |
-
keys_to_ignore_at_inference = ["past_key_values"]
|
| 11 |
-
model_type = "HelpingAI"
|
| 12 |
-
def __init__(
|
| 13 |
-
self,
|
| 14 |
-
vocab_size=50304,
|
| 15 |
-
hidden_size=2560,
|
| 16 |
-
intermediate_size=6912,
|
| 17 |
-
num_hidden_layers=32,
|
| 18 |
-
num_attention_heads=32,
|
| 19 |
-
num_key_value_heads=32,
|
| 20 |
-
head_dim=256,
|
| 21 |
-
hidden_act="silu",
|
| 22 |
-
max_position_embeddings=4096,
|
| 23 |
-
initializer_range=0.02,
|
| 24 |
-
rms_norm_eps=1e-6,
|
| 25 |
-
use_cache=True,
|
| 26 |
-
hidden_activation=None,
|
| 27 |
-
rope_theta=10000,
|
| 28 |
-
rope_pct=0.25,
|
| 29 |
-
attention_bias=False,
|
| 30 |
-
attention_dropout=0.0,
|
| 31 |
-
num_experts_per_tok=2,
|
| 32 |
-
num_local_experts=8,
|
| 33 |
-
router_aux_loss_coef=0.02,
|
| 34 |
-
output_router_logits=False,
|
| 35 |
-
norm_eps=1.0e-5,
|
| 36 |
-
**kwargs,
|
| 37 |
-
):
|
| 38 |
-
self.vocab_size = vocab_size
|
| 39 |
-
self.max_position_embeddings = max_position_embeddings
|
| 40 |
-
self.hidden_size = hidden_size
|
| 41 |
-
self.intermediate_size = intermediate_size
|
| 42 |
-
self.num_hidden_layers = num_hidden_layers
|
| 43 |
-
self.num_attention_heads = num_attention_heads
|
| 44 |
-
self.head_dim = head_dim
|
| 45 |
-
self.hidden_act = hidden_act
|
| 46 |
-
self.hidden_activation = hidden_activation
|
| 47 |
-
self.num_key_value_heads = num_key_value_heads
|
| 48 |
-
self.initializer_range = initializer_range
|
| 49 |
-
self.rms_norm_eps = rms_norm_eps
|
| 50 |
-
self.use_cache = use_cache
|
| 51 |
-
self.rope_theta = rope_theta
|
| 52 |
-
self.attention_bias = attention_bias
|
| 53 |
-
self.attention_dropout = attention_dropout
|
| 54 |
-
self.num_experts_per_tok = num_experts_per_tok
|
| 55 |
-
self.num_local_experts = num_local_experts
|
| 56 |
-
self.router_aux_loss_coef = router_aux_loss_coef
|
| 57 |
-
self.output_router_logits = output_router_logits
|
| 58 |
-
self.rope_pct = rope_pct
|
| 59 |
-
self.norm_eps = norm_eps
|
| 60 |
-
super().__init__(**kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|