Run this model with HF Jobs
Run MightyDragon-Dev/dragon_interceptor 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/MightyDragon-Dev/dragon_interceptor. 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/MightyDragon-Dev/dragon_interceptor 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/MightyDragon-Dev/dragon_interceptor. 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/MightyDragon-Dev/dragon_interceptor. 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 MightyDragon-Dev/dragon_interceptor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MightyDragon-Dev/dragon_interceptor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MightyDragon-Dev/dragon_interceptor")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MightyDragon-Dev/dragon_interceptor") model = AutoModelForCausalLM.from_pretrained("MightyDragon-Dev/dragon_interceptor", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MightyDragon-Dev/dragon_interceptor with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MightyDragon-Dev/dragon_interceptor" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MightyDragon-Dev/dragon_interceptor", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MightyDragon-Dev/dragon_interceptor
- SGLang
How to use MightyDragon-Dev/dragon_interceptor 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 "MightyDragon-Dev/dragon_interceptor" \ --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": "MightyDragon-Dev/dragon_interceptor", "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 "MightyDragon-Dev/dragon_interceptor" \ --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": "MightyDragon-Dev/dragon_interceptor", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MightyDragon-Dev/dragon_interceptor with Docker Model Runner:
docker model run hf.co/MightyDragon-Dev/dragon_interceptor
Final landing: 266K parameters trained on i5-10210U
Browse filesFiles changed (5)
- README.mdAdded+51
- config.jsonAdded+34
- generation_config.jsonAdded+9
- model.safetensorsAdded+3
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051---
library_name: transformers
tags:
- generated_from_trainer
model-index:
- name: dragon_interceptor
results: []
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->
# dragon_interceptor
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0005
- train_batch_size: 16
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 3
### Training results
### Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cpu
- Datasets 4.8.4
- Tokenizers 0.22.212345678910111213141516171819202122232425262728293031323334{
"activation_function": "gelu_new",
"add_cross_attention": false,
"architectures": [
"GPT2LMHeadModel"
],
"attn_pdrop": 0.1,
"bos_token_id": 0,
"dtype": "float32",
"embd_pdrop": 0.1,
"eos_token_id": 255,
"initializer_range": 0.02,
"layer_norm_epsilon": 1e-05,
"model_type": "gpt2",
"n_embd": 64,
"n_head": 4,
"n_inner": null,
"n_layer": 4,
"n_positions": 784,
"pad_token_id": null,
"reorder_and_upcast_attn": false,
"resid_pdrop": 0.1,
"scale_attn_by_inverse_layer_idx": false,
"scale_attn_weights": true,
"summary_activation": null,
"summary_first_dropout": 0.1,
"summary_proj_to_labels": true,
"summary_type": "cls_index",
"summary_use_proj": true,
"tie_word_embeddings": true,
"transformers_version": "5.0.0",
"use_cache": false,
"vocab_size": 256
}123456789{
"_from_model_config": true,
"bos_token_id": 0,
"eos_token_id": 255,
"output_attentions": false,
"output_hidden_states": false,
"transformers_version": "5.0.0",
"use_cache": true
}123version https://git-lfs.github.com/spec/v1oid sha256:46d4beddab95b981b135adbe0a46a649a98813e934f9c6e6da92a6a0db26d068size 1071392123version https://git-lfs.github.com/spec/v1oid sha256:af64a6c2319071e6fbac53db6a6cf71f1dbf9973ee94211d51d13628e1520863size 5137README.mdAdded+51
config.jsonAdded+34
generation_config.jsonAdded+9
model.safetensorsAdded+3
training_args.binAdded+3