Text Generation
PEFT
Safetensors
Transformers
chemistry
educational-ai
lora
qlora
sft
trl
unsloth
reasoning
local-llm
conversational
Instructions to use rish3on3AI/chem-Phi-Mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use rish3on3AI/chem-Phi-Mini with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/phi-4-mini-reasoning-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "rish3on3AI/chem-Phi-Mini") - Transformers
How to use rish3on3AI/chem-Phi-Mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rish3on3AI/chem-Phi-Mini") 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("rish3on3AI/chem-Phi-Mini", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rish3on3AI/chem-Phi-Mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rish3on3AI/chem-Phi-Mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rish3on3AI/chem-Phi-Mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rish3on3AI/chem-Phi-Mini
- SGLang
How to use rish3on3AI/chem-Phi-Mini 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 "rish3on3AI/chem-Phi-Mini" \ --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": "rish3on3AI/chem-Phi-Mini", "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 "rish3on3AI/chem-Phi-Mini" \ --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": "rish3on3AI/chem-Phi-Mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use rish3on3AI/chem-Phi-Mini with Docker Model Runner:
docker model run hf.co/rish3on3AI/chem-Phi-Mini
Download checkpoint-5500/tokenizer.json from rish3on3AI/chem-Phi-Mini: direct link, hf CLI and curl.
- Browser
- Download file 15.5 MB
-
https://huggingface.co/rish3on3AI/chem-Phi-Mini/resolve/main/checkpoint-5500/tokenizer.json
- Command line
-
hf download hf://rish3on3AI/chem-Phi-Mini/checkpoint-5500/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/rish3on3AI/chem-Phi-Mini/resolve/main/checkpoint-5500/tokenizer.json
15.5 MB
- Xet hash:
- 5012fe7acb2ab0f9339bdd471c5d38c542bd3df00f1f3d1c491c5e1852b609e6
- Size of remote file:
- 15.5 MB
- SHA256:
- 167ad4184f68275a61856ea519ba94485dc594ad7648468decaa495987c0b15c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.