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 Settings
- 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 PhiForCausalLM
Browse files- config.json +1 -1
- generation_config.json +1 -1
- model-00001-of-00002.safetensors +1 -1
- model-00002-of-00002.safetensors +1 -1
config.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
| 28 |
"rope_theta": 10000.0,
|
| 29 |
"tie_word_embeddings": false,
|
| 30 |
"torch_dtype": "float16",
|
| 31 |
-
"transformers_version": "4.39.
|
| 32 |
"use_cache": false,
|
| 33 |
"vocab_size": 58944
|
| 34 |
}
|
|
|
|
| 28 |
"rope_theta": 10000.0,
|
| 29 |
"tie_word_embeddings": false,
|
| 30 |
"torch_dtype": "float16",
|
| 31 |
+
"transformers_version": "4.39.3",
|
| 32 |
"use_cache": false,
|
| 33 |
"vocab_size": 58944
|
| 34 |
}
|
generation_config.json
CHANGED
|
@@ -2,6 +2,6 @@
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 58940,
|
| 4 |
"eos_token_id": 58943,
|
| 5 |
-
"transformers_version": "4.39.
|
| 6 |
"use_cache": false
|
| 7 |
}
|
|
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 58940,
|
| 4 |
"eos_token_id": 58943,
|
| 5 |
+
"transformers_version": "4.39.3",
|
| 6 |
"use_cache": false
|
| 7 |
}
|
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4969676576
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9f32e68f6e7178c03fb7c495be3766e1a30c6c1619ae4f6231199e373fad3d5
|
| 3 |
size 4969676576
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 669054872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09da5b96fc1a1a28444379fdf1e6365eeb5b8d7b8b6bb980626bc6b2ae9ca313
|
| 3 |
size 669054872
|