Text Generation
Transformers
TensorBoard
Safetensors
gemma3_text
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use bhaiyasingh45/functiongemma-function-calling-router_youtube_demo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bhaiyasingh45/functiongemma-function-calling-router_youtube_demo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bhaiyasingh45/functiongemma-function-calling-router_youtube_demo") 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("bhaiyasingh45/functiongemma-function-calling-router_youtube_demo") model = AutoModelForCausalLM.from_pretrained("bhaiyasingh45/functiongemma-function-calling-router_youtube_demo", 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 bhaiyasingh45/functiongemma-function-calling-router_youtube_demo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bhaiyasingh45/functiongemma-function-calling-router_youtube_demo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bhaiyasingh45/functiongemma-function-calling-router_youtube_demo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bhaiyasingh45/functiongemma-function-calling-router_youtube_demo
- SGLang
How to use bhaiyasingh45/functiongemma-function-calling-router_youtube_demo 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 "bhaiyasingh45/functiongemma-function-calling-router_youtube_demo" \ --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": "bhaiyasingh45/functiongemma-function-calling-router_youtube_demo", "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 "bhaiyasingh45/functiongemma-function-calling-router_youtube_demo" \ --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": "bhaiyasingh45/functiongemma-function-calling-router_youtube_demo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use bhaiyasingh45/functiongemma-function-calling-router_youtube_demo with Docker Model Runner:
docker model run hf.co/bhaiyasingh45/functiongemma-function-calling-router_youtube_demo
Commit History
-
Model save
Bhaiya Hari Narayan SinghVerified signatureea66a70 -
Training in progress, epoch 15
Bhaiya Hari Narayan SinghVerified signature66c095f -
Training in progress, epoch 14
Bhaiya Hari Narayan SinghVerified signature1e5af92 -
Training in progress, epoch 13
Bhaiya Hari Narayan SinghVerified signature250759a -
Training in progress, epoch 12
Bhaiya Hari Narayan SinghVerified signatureed3dd50 -
Training in progress, epoch 11
Bhaiya Hari Narayan SinghVerified signature838285d -
Training in progress, epoch 10
Bhaiya Hari Narayan SinghVerified signaturec58c90f -
Training in progress, epoch 9
Bhaiya Hari Narayan SinghVerified signature1b3eabb -
Training in progress, epoch 8
Bhaiya Hari Narayan SinghVerified signatured852c3f -
Training in progress, epoch 7
Bhaiya Hari Narayan SinghVerified signature3c6fb8e -
Training in progress, epoch 6
Bhaiya Hari Narayan SinghVerified signaturecc4d83b -
Training in progress, epoch 5
Bhaiya Hari Narayan SinghVerified signature9da5f29 -
Training in progress, epoch 4
Bhaiya Hari Narayan SinghVerified signature532feb1 -
Training in progress, epoch 3
Bhaiya Hari Narayan SinghVerified signature0cc2a74 -
Training in progress, epoch 2
Bhaiya Hari Narayan SinghVerified signature17dbd56 -
Training in progress, epoch 1
Bhaiya Hari Narayan SinghVerified signaturec7b1d67
-
Model save
Bhaiya Hari Narayan SinghVerified signatureb7393a5 -
Training in progress, epoch 15
Bhaiya Hari Narayan SinghVerified signature7cb0f39 -
Training in progress, epoch 14
Bhaiya Hari Narayan SinghVerified signature9b5791b -
Training in progress, epoch 13
Bhaiya Hari Narayan SinghVerified signature8c4a6c0 -
Training in progress, epoch 12
Bhaiya Hari Narayan SinghVerified signature7cd034d -
Training in progress, epoch 11
Bhaiya Hari Narayan SinghVerified signature4fe064d -
Training in progress, epoch 10
Bhaiya Hari Narayan SinghVerified signature1252d01 -
Training in progress, epoch 9
Bhaiya Hari Narayan SinghVerified signatureedc383a -
Training in progress, epoch 8
Bhaiya Hari Narayan SinghVerified signature7a56095 -
Training in progress, epoch 7
Bhaiya Hari Narayan SinghVerified signatureb00d8dd -
Training in progress, epoch 6
Bhaiya Hari Narayan SinghVerified signaturec81f6aa -
Training in progress, epoch 5
Bhaiya Hari Narayan SinghVerified signature2c2f0b0 -
Training in progress, epoch 4
Bhaiya Hari Narayan SinghVerified signature773aa2d -
Training in progress, epoch 3
Bhaiya Hari Narayan SinghVerified signaturee379bb2 -
Training in progress, epoch 2
Bhaiya Hari Narayan SinghVerified signature9e12d2c -
Training in progress, epoch 1
Bhaiya Hari Narayan SinghVerified signaturebb8c3c6 -
initial commit
Bhaiya Hari Narayan SinghVerified signature1974858