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
Download tokenizer.model from Ranjit0034/finee-phi3-4b: direct link, hf CLI and curl.
- Browser
- Download file 500 kB
-
https://huggingface.co/Ranjit0034/finee-phi3-4b/resolve/main/tokenizer.model
- Command line
-
hf download hf://Ranjit0034/finee-phi3-4b/tokenizer.model
-
curl -L -o tokenizer.model https://huggingface.co/Ranjit0034/finee-phi3-4b/resolve/main/tokenizer.model
500 kB
- Xet hash:
- 409b63d0f14ab5da7909ddcb93f85878ef0e4f19bfa91194b68ac5b45a5b6e87
- Size of remote file:
- 500 kB
- SHA256:
- 9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.