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