Instructions to use mecoffey/NPC_brain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mecoffey/NPC_brain with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("openbmb/MiniCPM5-1B") model = PeftModel.from_pretrained(base_model, "mecoffey/NPC_brain") - Transformers
How to use mecoffey/NPC_brain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mecoffey/NPC_brain") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("mecoffey/NPC_brain") model = AutoModelForMultimodalLM.from_pretrained("mecoffey/NPC_brain") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mecoffey/NPC_brain with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mecoffey/NPC_brain" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mecoffey/NPC_brain", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mecoffey/NPC_brain
- SGLang
How to use mecoffey/NPC_brain 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 "mecoffey/NPC_brain" \ --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": "mecoffey/NPC_brain", "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 "mecoffey/NPC_brain" \ --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": "mecoffey/NPC_brain", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mecoffey/NPC_brain with Docker Model Runner:
docker model run hf.co/mecoffey/NPC_brain
Model Card for NPC Brain
This is a fine-tune of Open BMB's Mini CPM5 1B parameter model.
I have specifically trained it to be the "Brain" of my app for the Build Small Hackathon in June 2026
- Developed by: mecoffey
- Model type:
- Language: English
- License: apache-2.0
- Finetuned from model: https://huggingface.co/openbmb/MiniCPM5-1B
Model Sources
- Repository: [More Information Needed]
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]
Recommendations
This model was trained with the following workflow in mind:
- User prompt + system prompt = physical description of a fantasy character.
- User prompt + generated description + new system prompt = a timeline backstory for the character to get to know them.
My exact system prompts and model call are:
''' ADD CODE HERE '''
How to Get Started with the Model
Training Details
Training Data
https://huggingface.co/datasets/mecoffey/npc_dataset
Compute Infrastructure
Trained with Modal GPU's
Citation
@article{minicpm4, title={Minicpm4: Ultra-efficient llms on end devices}, author={MiniCPM, Team}, journal={arXiv preprint arXiv:2506.07900}, year={2025} }
- Downloads last month
- -
Model tree for mecoffey/NPC_brain
Base model
openbmb/MiniCPM5-1B