Instructions to use mishig/mock-html-modelcard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mishig/mock-html-modelcard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mishig/mock-html-modelcard")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mishig/mock-html-modelcard", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mishig/mock-html-modelcard with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mishig/mock-html-modelcard" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mishig/mock-html-modelcard", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mishig/mock-html-modelcard
- SGLang
How to use mishig/mock-html-modelcard 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 "mishig/mock-html-modelcard" \ --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": "mishig/mock-html-modelcard", "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 "mishig/mock-html-modelcard" \ --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": "mishig/mock-html-modelcard", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mishig/mock-html-modelcard with Docker Model Runner:
docker model run hf.co/mishig/mock-html-modelcard
GLM-5.2 (mock model card)
This is a mock repository. It exists to showcase how far you can push a Hugging Face model card with sanitized inline-style HTML. The chart below is a pure-HTML recreation of the benchmark figure from the zai-org/GLM-5.2 model card, using Hugging Face org avatars as the chart logos. All numbers are illustrative.
How this chart is built
No images, no SVG, no JavaScript. The figure above is plain HTML with inline styles (flexbox columns for the bars, a CSS grid for the 4×2 chart layout, and linear-gradient fills), which is what the Hugging Face model-card sanitizer allows. The logos are the org avatars served from cdn-avatars.huggingface.co.