Text Generation
Transformers
PyTorch
English
bart
text2text-generation
question generation
Eval Results (legacy)
Instructions to use research-backup/bart-base-squad-qg-no-answer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use research-backup/bart-base-squad-qg-no-answer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="research-backup/bart-base-squad-qg-no-answer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("research-backup/bart-base-squad-qg-no-answer") model = AutoModelForSeq2SeqLM.from_pretrained("research-backup/bart-base-squad-qg-no-answer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use research-backup/bart-base-squad-qg-no-answer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "research-backup/bart-base-squad-qg-no-answer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "research-backup/bart-base-squad-qg-no-answer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/research-backup/bart-base-squad-qg-no-answer
- SGLang
How to use research-backup/bart-base-squad-qg-no-answer 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 "research-backup/bart-base-squad-qg-no-answer" \ --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": "research-backup/bart-base-squad-qg-no-answer", "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 "research-backup/bart-base-squad-qg-no-answer" \ --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": "research-backup/bart-base-squad-qg-no-answer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use research-backup/bart-base-squad-qg-no-answer with Docker Model Runner:
docker model run hf.co/research-backup/bart-base-squad-qg-no-answer
Download pytorch_model.bin from research-backup/bart-base-squad-qg-no-answer: direct link, hf CLI and curl.
- Browser
- Download file 558 MB
-
https://huggingface.co/research-backup/bart-base-squad-qg-no-answer/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://research-backup/bart-base-squad-qg-no-answer/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/research-backup/bart-base-squad-qg-no-answer/resolve/main/pytorch_model.bin
558 MB
- Xet hash:
- 338bc8beaee3eb50a3ade7fb7519efe8929fe52b82f2e79c84ae0f6137b0eb1c
- Size of remote file:
- 558 MB
- SHA256:
- 24f35f82c8389ead1dd6831d3f0825b6b0bd2b18371103e5cfa5ca475f1e4853
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.