Run this model with HF Jobs
Run anthonym21/json-tokenizer-structured on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/anthonym21/json-tokenizer-structured. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/anthonym21/json-tokenizer-structured on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/anthonym21/json-tokenizer-structured. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/anthonym21/json-tokenizer-structured. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use anthonym21/json-tokenizer-structured with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anthonym21/json-tokenizer-structured with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anthonym21/json-tokenizer-structured")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("anthonym21/json-tokenizer-structured", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use anthonym21/json-tokenizer-structured with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anthonym21/json-tokenizer-structured" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anthonym21/json-tokenizer-structured", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/anthonym21/json-tokenizer-structured
- SGLang
How to use anthonym21/json-tokenizer-structured 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 "anthonym21/json-tokenizer-structured" \ --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": "anthonym21/json-tokenizer-structured", "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 "anthonym21/json-tokenizer-structured" \ --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": "anthonym21/json-tokenizer-structured", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use anthonym21/json-tokenizer-structured with Docker Model Runner:
docker model run hf.co/anthonym21/json-tokenizer-structured
Upload folder using huggingface_hub
Browse filesFiles changed (2)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{
"version": "json-tokenizer-v1",
"bpe_vocab_size": 4096,
"max_key_vocab": 512,
"min_key_freq": 2,
"bpe_min_freq": 2,
"key_vocab": {
"type": 32,
"name": 33,
"path": 34,
"timestamp": 35,
"geometry": 36,
"coordinates": 37,
"properties": 38,
"id": 39,
"country_code": 40,
"admin_region": 41,
"population": 42,
"elevation_m": 43,
"timezone": 44,
"feature_class": 45,
"feature_code": 46,
"last_updated": 47,
"level": 48,
"service": 49,
"trace_id": 50,
"span_id": 51,
"method": 52,
"status_code": 53,
"duration_ms": 54,
"request_size": 55,
"response_size": 56,
"user_id": 57,
"region": 58,
"value": 59,
"app": 60,
"metadata": 61,
"labels": 62,
"spec": 63,
"cpu": 64,
"memory": 65,
"httpGet": 66,
"port": 67,
"initialDelaySeconds": 68,
"periodSeconds": 69,
"apiVersion": 70,
"kind": 71,
"namespace": 72,
"version": 73,
"tier": 74,
"annotations": 75,
"deployment.kubernetes.io/revision": 76,
"replicas": 77,
"selector": 78,
"matchLabels": 79,
"template": 80,
"containers": 81,
"image": 82,
"ports": 83,
"containerPort": 84,
"protocol": 85,
"resources": 86,
"requests": 87,
"limits": 88,
"env": 89,
"livenessProbe": 90,
"readinessProbe": 91,
"imagePullSecrets": 92,
"from": 93,
"contributor": 94,
"chat_format": 95,
"conversations": 96
},
"key_offset": 32,
"bpe_offset": 97
}native_format/bpe_model.jsonAdded
native_format/tokenizer_config.jsonAdded+76