Text Generation
Transformers
Safetensors
matilda-platypus
matilda
platypus
representation-bridge
qwen3
base-model
custom_code
Instructions to use Maincode/Matilda-Platypus-1.5B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maincode/Matilda-Platypus-1.5B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Maincode/Matilda-Platypus-1.5B-Base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Maincode/Matilda-Platypus-1.5B-Base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Maincode/Matilda-Platypus-1.5B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Maincode/Matilda-Platypus-1.5B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Maincode/Matilda-Platypus-1.5B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Maincode/Matilda-Platypus-1.5B-Base
- SGLang
How to use Maincode/Matilda-Platypus-1.5B-Base 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 "Maincode/Matilda-Platypus-1.5B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Maincode/Matilda-Platypus-1.5B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Maincode/Matilda-Platypus-1.5B-Base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Maincode/Matilda-Platypus-1.5B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Maincode/Matilda-Platypus-1.5B-Base with Docker Model Runner:
docker model run hf.co/Maincode/Matilda-Platypus-1.5B-Base
File size: 1,181 Bytes
2eec58b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | {
"protocol": "lm-eval-harness 0.4.13, base-model protocol, HumanEval fence-stripped",
"cut": "18+10",
"params_b": 1.53,
"gflop_per_token": 2.68,
"compute_pct_of_larger_parent": 73,
"smaller_parent": {
"name": "Qwen3-0.6B-Base",
"humaneval": 0.287,
"gsm8k_cot": 0.5951,
"mmlu": 0.5271,
"bbh_cot_fewshot": 0.4061,
"hellaswag": 0.5384,
"arc_easy": 0.5791,
"arc_challenge": 0.3848,
"openbookqa": 0.344,
"winogrande": 0.5872,
"piqa": 0.7013,
"lambada_openai": 0.5372,
"mbpp": 0.39,
"boolq": 0.6972
},
"model": {
"humaneval": 0.409,
"gsm8k_cot": 0.6914,
"mmlu": 0.6056,
"bbh_cot_fewshot": 0.4732,
"hellaswag": 0.5951,
"arc_easy": 0.6604,
"arc_challenge": 0.407,
"openbookqa": 0.374,
"winogrande": 0.6354,
"piqa": 0.7258,
"lambada_openai": 0.5742,
"mbpp": 0.456,
"boolq": 0.7771
},
"larger_parent": {
"name": "Qwen3-1.7B-Base",
"humaneval": 0.494,
"gsm8k_cot": 0.7293,
"mmlu": 0.6249,
"bbh_cot_fewshot": 0.529,
"hellaswag": 0.6648,
"arc_easy": 0.6864,
"arc_challenge": 0.4462,
"openbookqa": 0.388,
"winogrande": 0.644,
"piqa": 0.7579,
"lambada_openai": 0.633,
"mbpp": 0.566,
"boolq": 0.7902
}
} |