Text Generation
Transformers
Safetensors
PyTorch
phi
custom_code
text-generation-inference
8-bit precision
Instructions to use IvanD2002/finetuned-phi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IvanD2002/finetuned-phi with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IvanD2002/finetuned-phi", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("IvanD2002/finetuned-phi", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("IvanD2002/finetuned-phi", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IvanD2002/finetuned-phi with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IvanD2002/finetuned-phi" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IvanD2002/finetuned-phi", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/IvanD2002/finetuned-phi
- SGLang
How to use IvanD2002/finetuned-phi 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 "IvanD2002/finetuned-phi" \ --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": "IvanD2002/finetuned-phi", "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 "IvanD2002/finetuned-phi" \ --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": "IvanD2002/finetuned-phi", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use IvanD2002/finetuned-phi with Docker Model Runner:
docker model run hf.co/IvanD2002/finetuned-phi
Commit History
-
Delete pytorch_model.bin
Verified signature89a1f27 -
Upload adapter_config.json
Verified signaturef0566f9 -
Upload 2 files
Verified signature7343afd
-
Upload 8 files
Verified signature9ea1579 -
Delete special_tokens_map.json
Verified signature9b0b64d -
Delete merges.txt
Verified signaturec31f481 -
Delete generation_config.json
Verified signaturec4948d6 -
Delete tokenizer.json
Verified signature6e5a896 -
Delete tokenizer_config.json
Verified signaturea4aa789 -
Delete vocab.json
Verified signature1e9e966 -
Delete config.json
Verified signature7cf8c3d -
Delete added_tokens.json
Verified signaturec0acd83 -
Update config.json
Verified signature0f5479c -
Rename finetuned_model.bin to pytorch_model.bin
Verified signaturebd23edd -
Upload finetuned_model.bin
Verified signature2ffa34d -
Update README.md
Verified signature1b45e3e -
Delete adapter_config.json
Verified signaturedff4672 -
Delete adapter_model.safetensors
Verified signaturec16e23d -
Delete model.safetensors
Verified signature02bbd33 -
Update README.md
Verified signature25dcc89 -
Upload 13 files
Verified signature2d0c1cf -
initial commit
Verified signature93b2a22