Instructions to use GeoloeG/phi4_lightFinder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GeoloeG/phi4_lightFinder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GeoloeG/phi4_lightFinder") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("GeoloeG/phi4_lightFinder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GeoloeG/phi4_lightFinder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GeoloeG/phi4_lightFinder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GeoloeG/phi4_lightFinder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/GeoloeG/phi4_lightFinder
- SGLang
How to use GeoloeG/phi4_lightFinder 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 "GeoloeG/phi4_lightFinder" \ --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": "GeoloeG/phi4_lightFinder", "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 "GeoloeG/phi4_lightFinder" \ --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": "GeoloeG/phi4_lightFinder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use GeoloeG/phi4_lightFinder with Docker Model Runner:
docker model run hf.co/GeoloeG/phi4_lightFinder
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
license: other
|
| 5 |
-
base_model:
|
|
|
|
| 6 |
library_name: peft transformers bitsandbytes
|
| 7 |
tags:
|
| 8 |
- text-generation
|
|
@@ -12,8 +13,8 @@ tags:
|
|
| 12 |
model_type: causal-lm
|
| 13 |
inference:
|
| 14 |
parameters:
|
| 15 |
-
temperature: 0
|
| 16 |
-
min_p: 1
|
| 17 |
max_new_tokens: 2048
|
| 18 |
pipeline_tag: text-generation
|
| 19 |
task_type: CAUSAL_LM
|
|
|
|
| 2 |
language:
|
| 3 |
- en
|
| 4 |
license: other
|
| 5 |
+
base_model:
|
| 6 |
+
- unsloth/phi-4-unsloth-bnb-4bit
|
| 7 |
library_name: peft transformers bitsandbytes
|
| 8 |
tags:
|
| 9 |
- text-generation
|
|
|
|
| 13 |
model_type: causal-lm
|
| 14 |
inference:
|
| 15 |
parameters:
|
| 16 |
+
temperature: 0
|
| 17 |
+
min_p: 1
|
| 18 |
max_new_tokens: 2048
|
| 19 |
pipeline_tag: text-generation
|
| 20 |
task_type: CAUSAL_LM
|