Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
gkd
trl
conversational
text-generation-inference
Instructions to use Bhargav2981/gkd-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Bhargav2981/gkd-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Bhargav2981/gkd-model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Bhargav2981/gkd-model") model = AutoModelForCausalLM.from_pretrained("Bhargav2981/gkd-model", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Bhargav2981/gkd-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Bhargav2981/gkd-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Bhargav2981/gkd-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Bhargav2981/gkd-model
- SGLang
How to use Bhargav2981/gkd-model 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 "Bhargav2981/gkd-model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Bhargav2981/gkd-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Bhargav2981/gkd-model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Bhargav2981/gkd-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Bhargav2981/gkd-model with Docker Model Runner:
docker model run hf.co/Bhargav2981/gkd-model
Commit History
-
Training in progress, step 50
Verified signatureb9db27f -
Training in progress, step 40
Verified signaturee6e2900 -
Training in progress, step 30
Verified signature15687ea -
Training in progress, step 20
Verified signatureb2a06db -
Training in progress, step 10
Verified signaturef03ace0
-
Training in progress, step 1028
Verified signature5efbd5b -
Training in progress, step 1020
Verified signature34207ee -
Training in progress, step 1010
Verified signature2c795b3 -
Training in progress, step 1000
Verified signature5f34932 -
Training in progress, step 990
Verified signaturefa365cc -
Training in progress, step 980
Verified signature2e67cc2 -
Training in progress, step 970
Verified signature0d2a478 -
Training in progress, step 960
Verified signature9460853 -
Training in progress, step 950
Verified signaturec2773ae -
Training in progress, step 940
Verified signaturebcbc2e9 -
Training in progress, step 930
Verified signaturef4f8b19 -
Training in progress, step 920
Verified signature567a5c4 -
Training in progress, step 910
Verified signaturecb3e675 -
Training in progress, step 900
Verified signature3b7d5a2 -
Training in progress, step 890
Verified signaturec2fe1f0 -
Training in progress, step 880
Verified signature560e292 -
Training in progress, step 870
Verified signature0466e10 -
Training in progress, step 860
Verified signature6f9958a -
Training in progress, step 850
Verified signature2eacdc4 -
Training in progress, step 840
Verified signature21e50fe -
Training in progress, step 830
Verified signature826b159 -
Training in progress, step 820
Verified signature2fa2987 -
Training in progress, step 810
Verified signature53968fc -
Training in progress, step 800
Verified signaturef14e50c -
Training in progress, step 790
Verified signature05429f0 -
Training in progress, step 780
Verified signature93f067c -
Training in progress, step 770
Verified signature560fc6f -
Training in progress, step 760
Verified signature2c2db7c -
Training in progress, step 750
Verified signaturefd65512 -
Training in progress, step 740
Verified signaturec1f4174 -
Training in progress, step 730
Verified signature1838531 -
Training in progress, step 720
Verified signaturecd4e4eb -
Training in progress, step 710
Verified signature59d3635 -
Training in progress, step 700
Verified signature2fa697d -
Training in progress, step 690
Verified signature553ab3e -
Training in progress, step 680
Verified signatureb663c62 -
Training in progress, step 670
Verified signaturea60a1a0 -
Training in progress, step 660
Verified signature3f565f4 -
Training in progress, step 650
Verified signature9fb305b -
Training in progress, step 640
Verified signature8ee70fe -
Training in progress, step 630
Verified signature4a23e98 -
Training in progress, step 620
Verified signature54b9cf3 -
Training in progress, step 610
Verified signature6657ff2 -
Training in progress, step 600
Verified signature3159ffb -
Training in progress, step 590
Verified signature509ef58