Instructions to use aipib/llm-jp-3.1-1.8b-function-calling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use aipib/llm-jp-3.1-1.8b-function-calling 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("aipib/llm-jp-3.1-1.8b-function-calling") 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 aipib/llm-jp-3.1-1.8b-function-calling with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "aipib/llm-jp-3.1-1.8b-function-calling"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "aipib/llm-jp-3.1-1.8b-function-calling" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aipib/llm-jp-3.1-1.8b-function-calling", "messages": [ {"role": "user", "content": "Hello"} ] }' - Atomic Chat
Download tokenizer.model from aipib/llm-jp-3.1-1.8b-function-calling: direct link, hf CLI and curl.
- Browser
- Download file 1.68 MB
-
https://huggingface.co/aipib/llm-jp-3.1-1.8b-function-calling/resolve/main/tokenizer.model
- Command line
-
hf download hf://aipib/llm-jp-3.1-1.8b-function-calling/tokenizer.model
-
curl -L -o tokenizer.model https://huggingface.co/aipib/llm-jp-3.1-1.8b-function-calling/resolve/main/tokenizer.model
1.68 MB
- Xet hash:
- 7e575d39aeddfff378d70269cb53cb03bb7979dbb2e9db12dcbc54dd3035fd61
- Size of remote file:
- 1.68 MB
- SHA256:
- 9f1ece69671e1f73f850981304c26698a7c8e1853a5d87368bd16e536fb69cfa
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.