Text Generation
Transformers
Safetensors
PEFT
English
function-calling
xkcd
gemma
unsloth
lora
conversational
Instructions to use gnumanth/xkcd-functiongemma with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gnumanth/xkcd-functiongemma with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gnumanth/xkcd-functiongemma") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gnumanth/xkcd-functiongemma", device_map="auto") - PEFT
How to use gnumanth/xkcd-functiongemma with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gnumanth/xkcd-functiongemma with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gnumanth/xkcd-functiongemma" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gnumanth/xkcd-functiongemma", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gnumanth/xkcd-functiongemma
- SGLang
How to use gnumanth/xkcd-functiongemma 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 "gnumanth/xkcd-functiongemma" \ --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": "gnumanth/xkcd-functiongemma", "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 "gnumanth/xkcd-functiongemma" \ --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": "gnumanth/xkcd-functiongemma", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use gnumanth/xkcd-functiongemma with Docker Model Runner:
docker model run hf.co/gnumanth/xkcd-functiongemma
Download adapter_model.safetensors from gnumanth/xkcd-functiongemma: direct link, hf CLI and curl.
- Browser
- Download file 15.2 MB
-
https://huggingface.co/gnumanth/xkcd-functiongemma/resolve/main/adapter_model.safetensors
- Command line
-
hf download hf://gnumanth/xkcd-functiongemma/adapter_model.safetensors
-
curl -L -o adapter_model.safetensors https://huggingface.co/gnumanth/xkcd-functiongemma/resolve/main/adapter_model.safetensors
15.2 MB
- Xet hash:
- 8ddca26c66a48206f8d6d3c16c94d11c52bd56a47af25c91af769f1e398cb2fd
- Size of remote file:
- 15.2 MB
- SHA256:
- 87f7e1171eef5873ba1fe4c4a4d5aa4a71f2be92424c3605d43f4798f6b12043
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.