Instructions to use mr-exception/entity-g0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mr-exception/entity-g0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mr-exception/entity-g0")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mr-exception/entity-g0") model = AutoModelForCausalLM.from_pretrained("mr-exception/entity-g0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mr-exception/entity-g0 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 mr-exception/entity-g0 # Run inference directly in the terminal: llama cli -hf mr-exception/entity-g0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mr-exception/entity-g0 # Run inference directly in the terminal: llama cli -hf mr-exception/entity-g0
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 mr-exception/entity-g0 # Run inference directly in the terminal: ./llama-cli -hf mr-exception/entity-g0
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 mr-exception/entity-g0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf mr-exception/entity-g0
Use Docker
docker model run hf.co/mr-exception/entity-g0
- LM Studio
- Jan
- vLLM
How to use mr-exception/entity-g0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mr-exception/entity-g0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mr-exception/entity-g0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mr-exception/entity-g0
- SGLang
How to use mr-exception/entity-g0 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 "mr-exception/entity-g0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mr-exception/entity-g0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "mr-exception/entity-g0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mr-exception/entity-g0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use mr-exception/entity-g0 with Ollama:
ollama run hf.co/mr-exception/entity-g0
- Unsloth Desktop
- Docker Model Runner
How to use mr-exception/entity-g0 with Docker Model Runner:
docker model run hf.co/mr-exception/entity-g0
- Lemonade
How to use mr-exception/entity-g0 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mr-exception/entity-g0
Run and chat with the model
lemonade run user.entity-g0-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Upload tokenizer
Browse files- special_tokens_map.json +0 -4
- tokenizer.json +2 -2
- tokenizer_config.json +0 -21
special_tokens_map.json
CHANGED
|
@@ -1,8 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"additional_special_tokens": [
|
| 3 |
-
"<start_of_turn>",
|
| 4 |
-
"<end_of_turn>"
|
| 5 |
-
],
|
| 6 |
"bos_token": {
|
| 7 |
"content": "<bos>",
|
| 8 |
"lstrip": false,
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"bos_token": {
|
| 3 |
"content": "<bos>",
|
| 4 |
"lstrip": false,
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36da1831627311242422cdbafc0308f7a49dcbab0ebf9eb8803a0ca42c9807c8
|
| 3 |
+
size 17477993
|
tokenizer_config.json
CHANGED
|
@@ -33,30 +33,9 @@
|
|
| 33 |
"rstrip": false,
|
| 34 |
"single_word": false,
|
| 35 |
"special": true
|
| 36 |
-
},
|
| 37 |
-
"106": {
|
| 38 |
-
"content": "<start_of_turn>",
|
| 39 |
-
"lstrip": false,
|
| 40 |
-
"normalized": false,
|
| 41 |
-
"rstrip": false,
|
| 42 |
-
"single_word": false,
|
| 43 |
-
"special": true
|
| 44 |
-
},
|
| 45 |
-
"107": {
|
| 46 |
-
"content": "<end_of_turn>",
|
| 47 |
-
"lstrip": false,
|
| 48 |
-
"normalized": false,
|
| 49 |
-
"rstrip": false,
|
| 50 |
-
"single_word": false,
|
| 51 |
-
"special": true
|
| 52 |
}
|
| 53 |
},
|
| 54 |
-
"additional_special_tokens": [
|
| 55 |
-
"<start_of_turn>",
|
| 56 |
-
"<end_of_turn>"
|
| 57 |
-
],
|
| 58 |
"bos_token": "<bos>",
|
| 59 |
-
"chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
|
| 60 |
"clean_up_tokenization_spaces": false,
|
| 61 |
"eos_token": "<eos>",
|
| 62 |
"legacy": null,
|
|
|
|
| 33 |
"rstrip": false,
|
| 34 |
"single_word": false,
|
| 35 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
| 37 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
"bos_token": "<bos>",
|
|
|
|
| 39 |
"clean_up_tokenization_spaces": false,
|
| 40 |
"eos_token": "<eos>",
|
| 41 |
"legacy": null,
|