Instructions to use Ranjit0034/finee-phi3-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Ranjit0034/finee-phi3-4b with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Ranjit0034/finee-phi3-4b") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use Ranjit0034/finee-phi3-4b with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Ranjit0034/finee-phi3-4b"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Ranjit0034/finee-phi3-4b" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ranjit0034/finee-phi3-4b", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Commit History
-
Upload model.safetensors.index.json with huggingface_hub
Verified signaturea96568f -
Upload sample_finetune.py with huggingface_hub
Verified signaturef646e05 -
Upload configuration_phi3.py with huggingface_hub
Verified signature249af7b -
Upload chat_template.jinja with huggingface_hub
Verified signature999ba76 -
Upload README.md with huggingface_hub
Verified signatureb1abb21 -
Upload tokenizer.model with huggingface_hub
Verified signature8d58963 -
Upload generation_config.json with huggingface_hub
Verified signatured29321e -
Upload modeling_phi3.py with huggingface_hub
Verified signature7a5872a -
Upload tokenizer.json with huggingface_hub
Verified signature71edd0d -
Upload config.json with huggingface_hub
Verified signature4218a25 -
Upload special_tokens_map.json with huggingface_hub
Verified signature0755560 -
Upload tokenizer_config.json with huggingface_hub
Verified signature3f0e630 -
Upload added_tokens.json with huggingface_hub
Verified signature98a86a8 -
Upload model.safetensors with huggingface_hub
Verified signature8218bcc -
initial commit
Verified signature2f3e8c2