Text Generation
Transformers
TensorBoard
Safetensors
opt
Generated from Trainer
text-generation-inference
Instructions to use krushnakant27/bertQA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use krushnakant27/bertQA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="krushnakant27/bertQA")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("krushnakant27/bertQA") model = AutoModelForCausalLM.from_pretrained("krushnakant27/bertQA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use krushnakant27/bertQA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "krushnakant27/bertQA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "krushnakant27/bertQA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/krushnakant27/bertQA
- SGLang
How to use krushnakant27/bertQA 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 "krushnakant27/bertQA" \ --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": "krushnakant27/bertQA", "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 "krushnakant27/bertQA" \ --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": "krushnakant27/bertQA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use krushnakant27/bertQA with Docker Model Runner:
docker model run hf.co/krushnakant27/bertQA
Commit History
-
End of training
Verified signature7bc54d3 -
Training in progress, epoch 1
Verified signature9d2d694
-
End of training
Verified signature304f032 -
Training in progress, epoch 1
Verified signature5c37fb0
-
End of training
Verified signatured41df3f -
End of training
Verified signature12c773f -
End of training
Verified signaturee681114 -
End of training
Verified signature6eb7a76
-
End of training
Verified signature4a88db0 -
Model save
Verified signature239a470 -
End of training
Verified signature7463d4e -
End of training
Verified signature5946537 -
Training in progress, step 500
Verified signature52fbc39 -
Training in progress, step 400
Verified signature5cdf781 -
Training in progress, step 300
Verified signature113d85d -
Training in progress, step 200
Verified signature8c1689a -
Training in progress, step 100
Verified signature92fc24e -
initial commit
Verified signatureb8373b9