Run this model with HF Jobs
Run hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM 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/hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM. 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/hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM 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/hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM. 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/hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM. 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 hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM") model = AutoModelForCausalLM.from_pretrained("hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM
- SGLang
How to use hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM 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 "hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM" \ --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": "hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM", "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 "hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM" \ --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": "hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM with Docker Model Runner:
docker model run hf.co/hf-tiny-model-private/tiny-random-BigBirdPegasusForCausalLM
Commit ·
7a3e64f
1
Parent(s): 9a11548
Upload tiny models for BigBirdPegasusForCausalLM
Browse filesFiles changed (7)
- config.jsonAdded+38
- generation_config.jsonAdded+8
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+51
- spiece.modelAdded+3
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+59
1234567891011121314151617181920212223242526272829303132333435363738{ "activation_dropout": 0.0, "activation_function": "gelu_new", "architectures": [ "BigBirdPegasusForCausalLM" ], "attention_dropout": 0.1, "attention_type": "block_sparse", "block_size": 16, "bos_token_id": 2, "classifier_dropout": 0.0, "d_model": 32, "decoder_attention_heads": 4, "decoder_ffn_dim": 31, "decoder_layerdrop": 0.0, "decoder_layers": 2, "decoder_start_token_id": 2, "dropout": 0.1, "encoder_attention_heads": 4, "encoder_ffn_dim": 31, "encoder_layerdrop": 0.0, "encoder_layers": 2, "eos_token_id": 1, "init_std": 0.02, "is_decoder": true, "is_encoder_decoder": false, "max_position_embeddings": 260, "model_type": "bigbird_pegasus", "num_hidden_layers": 2, "num_random_blocks": 3, "pad_token_id": 0, "scale_embedding": true, "torch_dtype": "float32", "transformers_version": "4.28.0.dev0", "use_bias": false, "use_cache": true, "vocab_size": 96103}12345678{ "_from_model_config": true, "bos_token_id": 2, "decoder_start_token_id": 2, "eos_token_id": 1, "pad_token_id": 0, "transformers_version": "4.28.0.dev0"}123version https://git-lfs.github.com/spec/v1oid sha256:e5bae95d8a386d2c44dfc68216c3c7179c32fa22d3a27ccc5fa6bcb6b24f0838size 12430953123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "cls_token": { "content": "[CLS]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "mask_token": { "content": "[MASK]", "lstrip": true, "normalized": true, "rstrip": false, "single_word": false }, "pad_token": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": { "content": "[SEP]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:fe1b40df7e8825709c0172639c47338a68d5622e9e3b6cc0fae516537cae738bsize 19154551234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ "additional_special_tokens": [], "bos_token": { "__type": "AddedToken", "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "clean_up_tokenization_spaces": true, "cls_token": { "__type": "AddedToken", "content": "[CLS]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "__type": "AddedToken", "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "mask_token": "[MASK]", "mask_token_sent": null, "model_max_length": 260, "offset": 0, "pad_token": { "__type": "AddedToken", "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": { "__type": "AddedToken", "content": "[SEP]", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sp_model_kwargs": {}, "special_tokens_map_file": "/home/patrick/.cache/huggingface/transformers/b548e984b09823ed5cea0e622c0ec194a7e07b3c5d2e6b48a7cde84bd179cc7c.4eda581f816a0a941629106f0338c957910ce4839ecf7e3e743bb79523bf7249", "tokenizer_class": "PegasusTokenizer", "unk_token": { "__type": "AddedToken", "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}config.jsonAdded+38
generation_config.jsonAdded+8
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+51
spiece.modelAdded+3
tokenizer.jsonAdded
tokenizer_config.jsonAdded+59