Instructions to use isemmanuelolowe/Ikhou3b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use isemmanuelolowe/Ikhou3b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="isemmanuelolowe/Ikhou3b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("isemmanuelolowe/Ikhou3b") model = AutoModelForCausalLM.from_pretrained("isemmanuelolowe/Ikhou3b") 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
- vLLM
How to use isemmanuelolowe/Ikhou3b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "isemmanuelolowe/Ikhou3b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "isemmanuelolowe/Ikhou3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/isemmanuelolowe/Ikhou3b
- SGLang
How to use isemmanuelolowe/Ikhou3b 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 "isemmanuelolowe/Ikhou3b" \ --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": "isemmanuelolowe/Ikhou3b", "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 "isemmanuelolowe/Ikhou3b" \ --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": "isemmanuelolowe/Ikhou3b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use isemmanuelolowe/Ikhou3b with Docker Model Runner:
docker model run hf.co/isemmanuelolowe/Ikhou3b
Training in progress, step 100
Browse files- config.json +1 -1
- special_tokens_map.json +1 -7
- tokenizer.json +18 -0
- tokenizer_config.json +24 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "./
|
| 3 |
"architectures": [
|
| 4 |
"MambaForCausalLM"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "./Ikhou3b/checkpoint-1400",
|
| 3 |
"architectures": [
|
| 4 |
"MambaForCausalLM"
|
| 5 |
],
|
special_tokens_map.json
CHANGED
|
@@ -13,13 +13,7 @@
|
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
},
|
| 16 |
-
"pad_token":
|
| 17 |
-
"content": "<|endoftext|>",
|
| 18 |
-
"lstrip": false,
|
| 19 |
-
"normalized": false,
|
| 20 |
-
"rstrip": false,
|
| 21 |
-
"single_word": false
|
| 22 |
-
},
|
| 23 |
"unk_token": {
|
| 24 |
"content": "<|endoftext|>",
|
| 25 |
"lstrip": false,
|
|
|
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
},
|
| 16 |
+
"pad_token": "<|endoftext|>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
"unk_token": {
|
| 18 |
"content": "<|endoftext|>",
|
| 19 |
"lstrip": false,
|
tokenizer.json
CHANGED
|
@@ -241,6 +241,24 @@
|
|
| 241 |
"rstrip": false,
|
| 242 |
"normalized": true,
|
| 243 |
"special": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
}
|
| 245 |
],
|
| 246 |
"normalizer": {
|
|
|
|
| 241 |
"rstrip": false,
|
| 242 |
"normalized": true,
|
| 243 |
"special": false
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"id": 50277,
|
| 247 |
+
"content": "\n\n\nUser: ",
|
| 248 |
+
"single_word": false,
|
| 249 |
+
"lstrip": false,
|
| 250 |
+
"rstrip": false,
|
| 251 |
+
"normalized": true,
|
| 252 |
+
"special": false
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"id": 50278,
|
| 256 |
+
"content": "\n\n\nAssistant: ",
|
| 257 |
+
"single_word": false,
|
| 258 |
+
"lstrip": false,
|
| 259 |
+
"rstrip": false,
|
| 260 |
+
"normalized": true,
|
| 261 |
+
"special": false
|
| 262 |
}
|
| 263 |
],
|
| 264 |
"normalizer": {
|
tokenizer_config.json
CHANGED
|
@@ -200,14 +200,37 @@
|
|
| 200 |
"rstrip": false,
|
| 201 |
"single_word": false,
|
| 202 |
"special": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
}
|
| 204 |
},
|
| 205 |
"bos_token": "<|endoftext|>",
|
| 206 |
-
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'system' %}\n{{ message['content'] }}\n
|
| 207 |
"clean_up_tokenization_spaces": true,
|
| 208 |
"eos_token": "<|endoftext|>",
|
|
|
|
| 209 |
"model_max_length": 1000000000000000019884624838656,
|
|
|
|
| 210 |
"pad_token": "<|endoftext|>",
|
|
|
|
|
|
|
|
|
|
| 211 |
"tokenizer_class": "GPTNeoXTokenizer",
|
|
|
|
|
|
|
| 212 |
"unk_token": "<|endoftext|>"
|
| 213 |
}
|
|
|
|
| 200 |
"rstrip": false,
|
| 201 |
"single_word": false,
|
| 202 |
"special": false
|
| 203 |
+
},
|
| 204 |
+
"50277": {
|
| 205 |
+
"content": "\n\n\nUser: ",
|
| 206 |
+
"lstrip": false,
|
| 207 |
+
"normalized": true,
|
| 208 |
+
"rstrip": false,
|
| 209 |
+
"single_word": false,
|
| 210 |
+
"special": false
|
| 211 |
+
},
|
| 212 |
+
"50278": {
|
| 213 |
+
"content": "\n\n\nAssistant: ",
|
| 214 |
+
"lstrip": false,
|
| 215 |
+
"normalized": true,
|
| 216 |
+
"rstrip": false,
|
| 217 |
+
"single_word": false,
|
| 218 |
+
"special": false
|
| 219 |
}
|
| 220 |
},
|
| 221 |
"bos_token": "<|endoftext|>",
|
| 222 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'system' %}\n{{ message['content'] }}\n{% endif %}\n{% if message['role'] == 'user' %}\n\n\nUser: {{ message['content'] }}\n{% endif %}\n{% if message['role'] == 'assistant' %}\n\n\nAssistant: {{ message['content'] }}\n{% endif %}\n{% endfor %}\n\n\nAssistant: ",
|
| 223 |
"clean_up_tokenization_spaces": true,
|
| 224 |
"eos_token": "<|endoftext|>",
|
| 225 |
+
"max_length": 2048,
|
| 226 |
"model_max_length": 1000000000000000019884624838656,
|
| 227 |
+
"pad_to_multiple_of": null,
|
| 228 |
"pad_token": "<|endoftext|>",
|
| 229 |
+
"pad_token_type_id": 0,
|
| 230 |
+
"padding_side": "right",
|
| 231 |
+
"stride": 0,
|
| 232 |
"tokenizer_class": "GPTNeoXTokenizer",
|
| 233 |
+
"truncation_side": "right",
|
| 234 |
+
"truncation_strategy": "longest_first",
|
| 235 |
"unk_token": "<|endoftext|>"
|
| 236 |
}
|