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 750, 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:685409aaa17ee0260333238b8f951d4be16bd186276e4a6c264bea5d6441d5e5
|
| 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:d7f5ea3233d57c06aa6d5e9c81457e9e63a891ef3ef967c49d90747bc1a7f4bc
|
| 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:da6cffd29d107485fd65a3291d66df7b87424f25de973bb529c2fbe605d9c752
|
| 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,
|
|
@@ -498,6 +498,41 @@
|
|
| 498 |
"learning_rate": 2.39894493676317e-06,
|
| 499 |
"loss": 0.0117,
|
| 500 |
"step": 700
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 501 |
}
|
| 502 |
],
|
| 503 |
"logging_steps": 10,
|
|
@@ -512,12 +547,12 @@
|
|
| 512 |
"should_evaluate": false,
|
| 513 |
"should_log": false,
|
| 514 |
"should_save": true,
|
| 515 |
-
"should_training_stop":
|
| 516 |
},
|
| 517 |
"attributes": {}
|
| 518 |
}
|
| 519 |
},
|
| 520 |
-
"total_flos":
|
| 521 |
"train_batch_size": 2,
|
| 522 |
"trial_name": null,
|
| 523 |
"trial_params": null
|
|
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 3.0,
|
| 6 |
"eval_steps": 500,
|
| 7 |
+
"global_step": 750,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 498 |
"learning_rate": 2.39894493676317e-06,
|
| 499 |
"loss": 0.0117,
|
| 500 |
"step": 700
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"epoch": 2.84,
|
| 504 |
+
"grad_norm": 0.13301163911819458,
|
| 505 |
+
"learning_rate": 1.5526183247907778e-06,
|
| 506 |
+
"loss": 0.0052,
|
| 507 |
+
"step": 710
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"epoch": 2.88,
|
| 511 |
+
"grad_norm": 0.2115318477153778,
|
| 512 |
+
"learning_rate": 8.885936006545303e-07,
|
| 513 |
+
"loss": 0.0094,
|
| 514 |
+
"step": 720
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"epoch": 2.92,
|
| 518 |
+
"grad_norm": 0.30391114950180054,
|
| 519 |
+
"learning_rate": 4.0810038528209525e-07,
|
| 520 |
+
"loss": 0.0256,
|
| 521 |
+
"step": 730
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"epoch": 2.96,
|
| 525 |
+
"grad_norm": 0.09898550063371658,
|
| 526 |
+
"learning_rate": 1.1202844149663661e-07,
|
| 527 |
+
"loss": 0.0083,
|
| 528 |
+
"step": 740
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"epoch": 3.0,
|
| 532 |
+
"grad_norm": 0.2619428038597107,
|
| 533 |
+
"learning_rate": 9.26026380987377e-10,
|
| 534 |
+
"loss": 0.0144,
|
| 535 |
+
"step": 750
|
| 536 |
}
|
| 537 |
],
|
| 538 |
"logging_steps": 10,
|
|
|
|
| 547 |
"should_evaluate": false,
|
| 548 |
"should_log": false,
|
| 549 |
"should_save": true,
|
| 550 |
+
"should_training_stop": true
|
| 551 |
},
|
| 552 |
"attributes": {}
|
| 553 |
}
|
| 554 |
},
|
| 555 |
+
"total_flos": 2397029295816192.0,
|
| 556 |
"train_batch_size": 2,
|
| 557 |
"trial_name": null,
|
| 558 |
"trial_params": null
|