Instructions to use madhuHuggingface/functiongemma-ec2-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use madhuHuggingface/functiongemma-ec2-finetuned with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("madhuHuggingface/functiongemma-ec2-finetuned", dtype="auto") - llama-cpp-python
How to use madhuHuggingface/functiongemma-ec2-finetuned with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="madhuHuggingface/functiongemma-ec2-finetuned", filename="gguf/functiongemma-270m-it.Q8_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use madhuHuggingface/functiongemma-ec2-finetuned with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf madhuHuggingface/functiongemma-ec2-finetuned:Q8_0 # Run inference directly in the terminal: llama-cli -hf madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf madhuHuggingface/functiongemma-ec2-finetuned:Q8_0 # Run inference directly in the terminal: llama-cli -hf madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf madhuHuggingface/functiongemma-ec2-finetuned:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf madhuHuggingface/functiongemma-ec2-finetuned:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
Use Docker
docker model run hf.co/madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
- LM Studio
- Jan
- Ollama
How to use madhuHuggingface/functiongemma-ec2-finetuned with Ollama:
ollama run hf.co/madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
- Unsloth Studio
How to use madhuHuggingface/functiongemma-ec2-finetuned with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for madhuHuggingface/functiongemma-ec2-finetuned to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for madhuHuggingface/functiongemma-ec2-finetuned to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for madhuHuggingface/functiongemma-ec2-finetuned to start chatting
- Pi
How to use madhuHuggingface/functiongemma-ec2-finetuned with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "madhuHuggingface/functiongemma-ec2-finetuned:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use madhuHuggingface/functiongemma-ec2-finetuned with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
Run Hermes
hermes
- Docker Model Runner
How to use madhuHuggingface/functiongemma-ec2-finetuned with Docker Model Runner:
docker model run hf.co/madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
- Lemonade
How to use madhuHuggingface/functiongemma-ec2-finetuned with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull madhuHuggingface/functiongemma-ec2-finetuned:Q8_0
Run and chat with the model
lemonade run user.functiongemma-ec2-finetuned-Q8_0
List all available models
lemonade list
Training in progress, step 500, checkpoint
Browse files
last-checkpoint/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 60785144
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d27e9476dc918efebb61651f7e9f759934ffdffe549c6fc2165cc9ced32d93a6
|
| 3 |
size 60785144
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 31149205
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6ce41753fb994b8f796034d662e460bea6de0413caeaa2d0ec5be27d28aba58
|
| 3 |
size 31149205
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1465
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d35a14be938754e2a3aa3ebe18bdde4e86b890e4e0ff3c1f2a56a75942036606
|
| 3 |
size 1465
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
-
"epoch":
|
| 6 |
"eval_steps": 500,
|
| 7 |
-
"global_step":
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
@@ -288,6 +288,76 @@
|
|
| 288 |
"learning_rate": 9.39786722634207e-05,
|
| 289 |
"loss": 0.0157,
|
| 290 |
"step": 400
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 291 |
}
|
| 292 |
],
|
| 293 |
"logging_steps": 10,
|
|
@@ -307,7 +377,7 @@
|
|
| 307 |
"attributes": {}
|
| 308 |
}
|
| 309 |
},
|
| 310 |
-
"total_flos":
|
| 311 |
"train_batch_size": 2,
|
| 312 |
"trial_name": null,
|
| 313 |
"trial_params": null
|
|
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 2.0,
|
| 6 |
"eval_steps": 500,
|
| 7 |
+
"global_step": 500,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 288 |
"learning_rate": 9.39786722634207e-05,
|
| 289 |
"loss": 0.0157,
|
| 290 |
"step": 400
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"epoch": 1.6400000000000001,
|
| 294 |
+
"grad_norm": 0.3347119688987732,
|
| 295 |
+
"learning_rate": 8.968983025525654e-05,
|
| 296 |
+
"loss": 0.019,
|
| 297 |
+
"step": 410
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"epoch": 1.6800000000000002,
|
| 301 |
+
"grad_norm": 0.4677681028842926,
|
| 302 |
+
"learning_rate": 8.542008030801254e-05,
|
| 303 |
+
"loss": 0.0119,
|
| 304 |
+
"step": 420
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"epoch": 1.72,
|
| 308 |
+
"grad_norm": 0.2853691577911377,
|
| 309 |
+
"learning_rate": 8.11773290156756e-05,
|
| 310 |
+
"loss": 0.0327,
|
| 311 |
+
"step": 430
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"epoch": 1.76,
|
| 315 |
+
"grad_norm": 0.13519690930843353,
|
| 316 |
+
"learning_rate": 7.696943297693878e-05,
|
| 317 |
+
"loss": 0.0133,
|
| 318 |
+
"step": 440
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"epoch": 1.8,
|
| 322 |
+
"grad_norm": 0.15065522491931915,
|
| 323 |
+
"learning_rate": 7.280418424658946e-05,
|
| 324 |
+
"loss": 0.0193,
|
| 325 |
+
"step": 450
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"epoch": 1.8399999999999999,
|
| 329 |
+
"grad_norm": 0.2511173188686371,
|
| 330 |
+
"learning_rate": 6.868929590641735e-05,
|
| 331 |
+
"loss": 0.013,
|
| 332 |
+
"step": 460
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"epoch": 1.88,
|
| 336 |
+
"grad_norm": 0.2314622700214386,
|
| 337 |
+
"learning_rate": 6.463238778236288e-05,
|
| 338 |
+
"loss": 0.0137,
|
| 339 |
+
"step": 470
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"epoch": 1.92,
|
| 343 |
+
"grad_norm": 0.002136136870831251,
|
| 344 |
+
"learning_rate": 6.064097233435333e-05,
|
| 345 |
+
"loss": 0.0203,
|
| 346 |
+
"step": 480
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"epoch": 1.96,
|
| 350 |
+
"grad_norm": 0.5252191424369812,
|
| 351 |
+
"learning_rate": 5.672244074495689e-05,
|
| 352 |
+
"loss": 0.0097,
|
| 353 |
+
"step": 490
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"epoch": 2.0,
|
| 357 |
+
"grad_norm": 0.46642419695854187,
|
| 358 |
+
"learning_rate": 5.288404923261361e-05,
|
| 359 |
+
"loss": 0.0199,
|
| 360 |
+
"step": 500
|
| 361 |
}
|
| 362 |
],
|
| 363 |
"logging_steps": 10,
|
|
|
|
| 377 |
"attributes": {}
|
| 378 |
}
|
| 379 |
},
|
| 380 |
+
"total_flos": 1597906326839808.0,
|
| 381 |
"train_batch_size": 2,
|
| 382 |
"trial_name": null,
|
| 383 |
"trial_params": null
|