Text Generation
Transformers
Safetensors
English
HelpingAI
3B
Emotionally Intelligent
conversational
custom_code
Instructions to use OEvortex/HelpingAI-3B-v2.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OEvortex/HelpingAI-3B-v2.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OEvortex/HelpingAI-3B-v2.2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("OEvortex/HelpingAI-3B-v2.2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OEvortex/HelpingAI-3B-v2.2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OEvortex/HelpingAI-3B-v2.2" # 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-v2.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OEvortex/HelpingAI-3B-v2.2
- SGLang
How to use OEvortex/HelpingAI-3B-v2.2 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-v2.2" \ --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-v2.2", "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-v2.2" \ --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-v2.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use OEvortex/HelpingAI-3B-v2.2 with Docker Model Runner:
docker model run hf.co/OEvortex/HelpingAI-3B-v2.2
chat temp
#1
by Abhaykoul - opened
- special_tokens_map.json +23 -17
- tokenizer.json +0 -1
- tokenizer_config.json +1 -1
special_tokens_map.json
CHANGED
|
@@ -1,23 +1,29 @@
|
|
| 1 |
{
|
| 2 |
"additional_special_tokens": [
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
"lstrip": false,
|
| 6 |
-
"normalized": false,
|
| 7 |
-
"rstrip": false,
|
| 8 |
-
"single_word": false
|
| 9 |
-
},
|
| 10 |
-
{
|
| 11 |
-
"content": "<|im_end|>",
|
| 12 |
-
"lstrip": false,
|
| 13 |
-
"normalized": false,
|
| 14 |
-
"rstrip": false,
|
| 15 |
-
"single_word": false
|
| 16 |
-
}
|
| 17 |
],
|
| 18 |
-
"bos_token":
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
"unk_token": {
|
| 22 |
"content": "<|endoftext|>",
|
| 23 |
"lstrip": false,
|
|
|
|
| 1 |
{
|
| 2 |
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
],
|
| 6 |
+
"bos_token": {
|
| 7 |
+
"content": "<|im_start|>",
|
| 8 |
+
"lstrip": false,
|
| 9 |
+
"normalized": false,
|
| 10 |
+
"rstrip": false,
|
| 11 |
+
"single_word": false
|
| 12 |
+
},
|
| 13 |
+
"eos_token": {
|
| 14 |
+
"content": "<|im_end|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false
|
| 19 |
+
},
|
| 20 |
+
"pad_token": {
|
| 21 |
+
"content": "<|im_end|>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false
|
| 26 |
+
},
|
| 27 |
"unk_token": {
|
| 28 |
"content": "<|endoftext|>",
|
| 29 |
"lstrip": false,
|
tokenizer.json
CHANGED
|
@@ -314,7 +314,6 @@
|
|
| 314 |
"end_of_word_suffix": null,
|
| 315 |
"fuse_unk": false,
|
| 316 |
"byte_fallback": false,
|
| 317 |
-
"ignore_merges": false,
|
| 318 |
"vocab": {
|
| 319 |
"<|endoftext|>": 0,
|
| 320 |
"<|padding|>": 1,
|
|
|
|
| 314 |
"end_of_word_suffix": null,
|
| 315 |
"fuse_unk": false,
|
| 316 |
"byte_fallback": false,
|
|
|
|
| 317 |
"vocab": {
|
| 318 |
"<|endoftext|>": 0,
|
| 319 |
"<|padding|>": 1,
|
tokenizer_config.json
CHANGED
|
@@ -241,7 +241,7 @@
|
|
| 241 |
"<|im_end|>"
|
| 242 |
],
|
| 243 |
"bos_token": "<|im_start|>",
|
| 244 |
-
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '
|
| 245 |
"clean_up_tokenization_spaces": true,
|
| 246 |
"eos_token": "<|im_end|>",
|
| 247 |
"model_max_length": 1000000000000000019884624838656,
|
|
|
|
| 241 |
"<|im_end|>"
|
| 242 |
],
|
| 243 |
"bos_token": "<|im_start|>",
|
| 244 |
+
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '' + message['content'] + '<|im_end|>' + ''}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant' }}{% endif %}",
|
| 245 |
"clean_up_tokenization_spaces": true,
|
| 246 |
"eos_token": "<|im_end|>",
|
| 247 |
"model_max_length": 1000000000000000019884624838656,
|