Text Generation
Transformers
Safetensors
English
llama
tool-calling
function-calling
agents
qlora
claude-code
conversational
text-generation-inference
Instructions to use saidutta69/MiniCPM5-2B-Supertool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saidutta69/MiniCPM5-2B-Supertool with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="saidutta69/MiniCPM5-2B-Supertool") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("saidutta69/MiniCPM5-2B-Supertool") model = AutoModelForCausalLM.from_pretrained("saidutta69/MiniCPM5-2B-Supertool", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use saidutta69/MiniCPM5-2B-Supertool with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "saidutta69/MiniCPM5-2B-Supertool" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saidutta69/MiniCPM5-2B-Supertool", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/saidutta69/MiniCPM5-2B-Supertool
- SGLang
How to use saidutta69/MiniCPM5-2B-Supertool 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 "saidutta69/MiniCPM5-2B-Supertool" \ --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": "saidutta69/MiniCPM5-2B-Supertool", "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 "saidutta69/MiniCPM5-2B-Supertool" \ --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": "saidutta69/MiniCPM5-2B-Supertool", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use saidutta69/MiniCPM5-2B-Supertool with Docker Model Runner:
docker model run hf.co/saidutta69/MiniCPM5-2B-Supertool
Download eval/fc_base.json from saidutta69/MiniCPM5-2B-Supertool: direct link, hf CLI and curl.
- Browser
- Download file 1.62 kB
-
https://huggingface.co/saidutta69/MiniCPM5-2B-Supertool/resolve/main/eval/fc_base.json
- Command line
-
hf download hf://saidutta69/MiniCPM5-2B-Supertool/eval/fc_base.json
-
curl -L -o fc_base.json https://huggingface.co/saidutta69/MiniCPM5-2B-Supertool/resolve/main/eval/fc_base.json
1.62 kB
| { | |
| "benchmark": "saidutta69/fc-eval-benchmark (eval split, held-out APIs)", | |
| "model": "/root/ff/base", | |
| "n": 150, | |
| "seconds": 1070.7, | |
| "tsr_name": 0.5, | |
| "tsr_args_keys": 0.5, | |
| "tsr": 0.4933, | |
| "fmt_fail": 0.5, | |
| "counts": { | |
| "n": 150, | |
| "name_match": 75, | |
| "args_keys": 75, | |
| "full_match": 74, | |
| "fmt_fail": 75 | |
| }, | |
| "failures": [ | |
| { | |
| "i": 86, | |
| "why": "no_parse", | |
| "raw": "<think>\nOkay, let's see. The user wants to extract a sheet for entryid_48291 and output it to output-9f2a7c31. I need to check the available" | |
| }, | |
| { | |
| "i": 46, | |
| "why": "no_parse", | |
| "raw": "<think>\nOkay, let's see. The user wants to retrieve a record with id id_48291 and set the User-Agent header to user-agent-9f2a7c31.\n\nFirst, " | |
| }, | |
| { | |
| "i": 124, | |
| "why": "no_parse", | |
| "raw": "<think>\nOkay, the user wants to validate the IBAN \"iban-9f2a7c31\". Let me check the available tools. There are two functions: validateIBANBa" | |
| }, | |
| { | |
| "i": 38, | |
| "why": "no_parse", | |
| "raw": "<think>\nOkay, the user wants to validate the IBAN \"iban-9f2a7c31\". Let me check the available tools. There are two functions: validateIBAN a" | |
| }, | |
| { | |
| "i": 28, | |
| "why": "no_parse", | |
| "raw": "<think>\nOkay, the user wants to apply standard stopword filtering to the input data. Let me check the available tools.\n\nThere are two functi" | |
| }, | |
| { | |
| "i": 114, | |
| "why": "no_parse", | |
| "raw": "<think>\nOkay, let's see. The user wants to filter stopping words from a provided file with the type set to standard. I need to check the ava" | |
| } | |
| ] | |
| } |