Text Generation
Transformers
Safetensors
matilda-platypus
matilda
platypus
representation-bridge
qwen3
base-model
custom_code
Instructions to use Maincode/Matilda-Platypus-7B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maincode/Matilda-Platypus-7B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Maincode/Matilda-Platypus-7B-Base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Maincode/Matilda-Platypus-7B-Base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Maincode/Matilda-Platypus-7B-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-7B-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-7B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Maincode/Matilda-Platypus-7B-Base
- SGLang
How to use Maincode/Matilda-Platypus-7B-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-7B-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-7B-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-7B-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-7B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Maincode/Matilda-Platypus-7B-Base with Docker Model Runner:
docker model run hf.co/Maincode/Matilda-Platypus-7B-Base
File size: 1,176 Bytes
695766c | 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": "25+11",
"params_b": 6.96,
"gflop_per_token": 13.27,
"compute_pct_of_larger_parent": 84,
"smaller_parent": {
"name": "Qwen3-4B-Base",
"humaneval": 0.628,
"gsm8k_cot": 0.8438,
"mmlu": 0.7303,
"bbh_cot_fewshot": 0.712,
"hellaswag": 0.737,
"arc_easy": 0.7609,
"arc_challenge": 0.5171,
"openbookqa": 0.406,
"winogrande": 0.7024,
"piqa": 0.778,
"lambada_openai": 0.6912,
"mbpp": 0.672,
"boolq": 0.8318
},
"model": {
"humaneval": 0.689,
"gsm8k_cot": 0.8749,
"mmlu": 0.7634,
"bbh_cot_fewshot": 0.7463,
"hellaswag": 0.7583,
"arc_easy": 0.782,
"arc_challenge": 0.5273,
"openbookqa": 0.418,
"winogrande": 0.7103,
"piqa": 0.784,
"lambada_openai": 0.6934,
"mbpp": 0.668,
"boolq": 0.8199
},
"larger_parent": {
"name": "Qwen3-8B-Base",
"humaneval": 0.677,
"gsm8k_cot": 0.862,
"mmlu": 0.7679,
"bbh_cot_fewshot": 0.7736,
"hellaswag": 0.7859,
"arc_easy": 0.7984,
"arc_challenge": 0.5717,
"openbookqa": 0.416,
"winogrande": 0.723,
"piqa": 0.7943,
"lambada_openai": 0.7105,
"mbpp": 0.696,
"boolq": 0.8321
}
} |