Text Generation
Transformers
TensorBoard
Safetensors
gemma
video-production
automation
viral-content
function-calling
Instructions to use Saad4web/FunctionGemma-Director-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Saad4web/FunctionGemma-Director-V1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Saad4web/FunctionGemma-Director-V1")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Saad4web/FunctionGemma-Director-V1", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Saad4web/FunctionGemma-Director-V1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Saad4web/FunctionGemma-Director-V1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Saad4web/FunctionGemma-Director-V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Saad4web/FunctionGemma-Director-V1
- SGLang
How to use Saad4web/FunctionGemma-Director-V1 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 "Saad4web/FunctionGemma-Director-V1" \ --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": "Saad4web/FunctionGemma-Director-V1", "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 "Saad4web/FunctionGemma-Director-V1" \ --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": "Saad4web/FunctionGemma-Director-V1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Saad4web/FunctionGemma-Director-V1 with Docker Model Runner:
docker model run hf.co/Saad4web/FunctionGemma-Director-V1
Upload final clean bfloat16 model
Browse files- config.json +2 -2
- generation_config.json +1 -1
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"attn_logit_softcapping": null,
|
| 9 |
"bos_token_id": 2,
|
| 10 |
-
"dtype": "
|
| 11 |
"eos_token_id": 106,
|
| 12 |
"final_logit_softcapping": null,
|
| 13 |
"head_dim": 256,
|
|
@@ -47,7 +47,7 @@
|
|
| 47 |
"rope_scaling": null,
|
| 48 |
"rope_theta": 1000000.0,
|
| 49 |
"sliding_window": 512,
|
| 50 |
-
"transformers_version": "4.57.
|
| 51 |
"use_bidirectional_attention": false,
|
| 52 |
"use_cache": false,
|
| 53 |
"vocab_size": 262144
|
|
|
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"attn_logit_softcapping": null,
|
| 9 |
"bos_token_id": 2,
|
| 10 |
+
"dtype": "float16",
|
| 11 |
"eos_token_id": 106,
|
| 12 |
"final_logit_softcapping": null,
|
| 13 |
"head_dim": 256,
|
|
|
|
| 47 |
"rope_scaling": null,
|
| 48 |
"rope_theta": 1000000.0,
|
| 49 |
"sliding_window": 512,
|
| 50 |
+
"transformers_version": "4.57.3",
|
| 51 |
"use_bidirectional_attention": false,
|
| 52 |
"use_cache": false,
|
| 53 |
"vocab_size": 262144
|
generation_config.json
CHANGED
|
@@ -11,5 +11,5 @@
|
|
| 11 |
"pad_token_id": 0,
|
| 12 |
"top_k": 64,
|
| 13 |
"top_p": 0.95,
|
| 14 |
-
"transformers_version": "4.57.
|
| 15 |
}
|
|
|
|
| 11 |
"pad_token_id": 0,
|
| 12 |
"top_k": 64,
|
| 13 |
"top_p": 0.95,
|
| 14 |
+
"transformers_version": "4.57.3"
|
| 15 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d19aee97ec3ec382bb8574328b0c0b0b0a3e71ceac0e187bde95631401319e1
|
| 3 |
+
size 536222816
|