Instructions to use ryanu/EEVE-summarize with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ryanu/EEVE-summarize with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ryanu/EEVE-summarize") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ryanu/EEVE-summarize") model = AutoModelForCausalLM.from_pretrained("ryanu/EEVE-summarize") 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 ryanu/EEVE-summarize with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ryanu/EEVE-summarize" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ryanu/EEVE-summarize", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ryanu/EEVE-summarize
- SGLang
How to use ryanu/EEVE-summarize 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 "ryanu/EEVE-summarize" \ --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": "ryanu/EEVE-summarize", "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 "ryanu/EEVE-summarize" \ --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": "ryanu/EEVE-summarize", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ryanu/EEVE-summarize with Docker Model Runner:
docker model run hf.co/ryanu/EEVE-summarize
Upload tokenizer
Browse files- special_tokens_map.json +1 -1
- tokenizer.json +0 -0
- tokenizer_config.json +6 -6
special_tokens_map.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
},
|
| 16 |
"pad_token": "<|im_end|>",
|
| 17 |
"unk_token": {
|
| 18 |
-
"content": "<
|
| 19 |
"lstrip": false,
|
| 20 |
"normalized": false,
|
| 21 |
"rstrip": false,
|
|
|
|
| 15 |
},
|
| 16 |
"pad_token": "<|im_end|>",
|
| 17 |
"unk_token": {
|
| 18 |
+
"content": "<unk>",
|
| 19 |
"lstrip": false,
|
| 20 |
"normalized": false,
|
| 21 |
"rstrip": false,
|
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
CHANGED
|
@@ -2,15 +2,15 @@
|
|
| 2 |
"add_bos_token": true,
|
| 3 |
"add_eos_token": false,
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
-
"
|
| 6 |
-
"content": "<
|
| 7 |
"lstrip": false,
|
| 8 |
"normalized": false,
|
| 9 |
"rstrip": false,
|
| 10 |
"single_word": false,
|
| 11 |
"special": true
|
| 12 |
},
|
| 13 |
-
"
|
| 14 |
"content": "<s>",
|
| 15 |
"lstrip": false,
|
| 16 |
"normalized": false,
|
|
@@ -18,7 +18,7 @@
|
|
| 18 |
"single_word": false,
|
| 19 |
"special": true
|
| 20 |
},
|
| 21 |
-
"
|
| 22 |
"content": "</s>",
|
| 23 |
"lstrip": false,
|
| 24 |
"normalized": false,
|
|
@@ -26,7 +26,7 @@
|
|
| 26 |
"single_word": false,
|
| 27 |
"special": true
|
| 28 |
},
|
| 29 |
-
"
|
| 30 |
"content": "<|im_end|>",
|
| 31 |
"lstrip": false,
|
| 32 |
"normalized": false,
|
|
@@ -47,7 +47,7 @@
|
|
| 47 |
"spaces_between_special_tokens": false,
|
| 48 |
"tokenizer_class": "LlamaTokenizer",
|
| 49 |
"trust_remote_code": false,
|
| 50 |
-
"unk_token": "<
|
| 51 |
"use_default_system_prompt": false,
|
| 52 |
"use_fast": true
|
| 53 |
}
|
|
|
|
| 2 |
"add_bos_token": true,
|
| 3 |
"add_eos_token": false,
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
+
"0": {
|
| 6 |
+
"content": "<unk>",
|
| 7 |
"lstrip": false,
|
| 8 |
"normalized": false,
|
| 9 |
"rstrip": false,
|
| 10 |
"single_word": false,
|
| 11 |
"special": true
|
| 12 |
},
|
| 13 |
+
"1": {
|
| 14 |
"content": "<s>",
|
| 15 |
"lstrip": false,
|
| 16 |
"normalized": false,
|
|
|
|
| 18 |
"single_word": false,
|
| 19 |
"special": true
|
| 20 |
},
|
| 21 |
+
"2": {
|
| 22 |
"content": "</s>",
|
| 23 |
"lstrip": false,
|
| 24 |
"normalized": false,
|
|
|
|
| 26 |
"single_word": false,
|
| 27 |
"special": true
|
| 28 |
},
|
| 29 |
+
"32000": {
|
| 30 |
"content": "<|im_end|>",
|
| 31 |
"lstrip": false,
|
| 32 |
"normalized": false,
|
|
|
|
| 47 |
"spaces_between_special_tokens": false,
|
| 48 |
"tokenizer_class": "LlamaTokenizer",
|
| 49 |
"trust_remote_code": false,
|
| 50 |
+
"unk_token": "<unk>",
|
| 51 |
"use_default_system_prompt": false,
|
| 52 |
"use_fast": true
|
| 53 |
}
|