Instructions to use EzioDevio/gemma4-dev-agent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EzioDevio/gemma4-dev-agent with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("EzioDevio/gemma4-dev-agent", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tests/test_code_graph_exception.py from EzioDevio/gemma4-dev-agent: direct link, hf CLI and curl.
- Browser
- Download file 562 Bytes
-
https://huggingface.co/EzioDevio/gemma4-dev-agent/resolve/main/tests/test_code_graph_exception.py
- Command line
-
hf download hf://EzioDevio/gemma4-dev-agent/tests/test_code_graph_exception.py
-
curl -L -o test_code_graph_exception.py https://huggingface.co/EzioDevio/gemma4-dev-agent/resolve/main/tests/test_code_graph_exception.py
562 Bytes
| import pytest | |
| from pathlib import Path | |
| from src.tools.code_graph import CodeGraphIndexer | |
| def test_code_graph_unparseable_file(tmp_path): | |
| # Create a broken/unparseable file that causes ast.parse to fail | |
| broken_file = tmp_path / "broken.py" | |
| broken_file.write_text("def invalid_syntax( :", encoding="utf-8") | |
| indexer = CodeGraphIndexer(repo_root=str(tmp_path)) | |
| res = indexer.build_index() | |
| # Should catch the exception, skip the file, and complete successfully | |
| assert "indexed_files" in res | |
| assert res["indexed_files"] == 1 | |