Skip to content

Commit 4d46841

Browse files
add testing files
1 parent 7a05490 commit 4d46841

File tree

4 files changed

+775
-0
lines changed

4 files changed

+775
-0
lines changed

testing_files/gemma_test.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
============================= test session starts ==============================
2+
platform linux -- Python 3.12.3, pytest-8.4.0, pluggy-1.6.0 -- /home/mohamed-ashraf/Desktop/GSoC2025/env/bin/python
3+
cachedir: .pytest_cache
4+
rootdir: /home/mohamed-ashraf/Desktop/GSoC2025/keras-hub
5+
configfile: pytest.ini
6+
plugins: cov-6.1.1
7+
collecting ... collected 15 items
8+
9+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::TestCase::test_session SKIPPED [ 6%]
10+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_all_presets SKIPPED [ 13%]
11+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_cache_correctness SKIPPED [ 20%]
12+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_causal_lm_basics SKIPPED [ 26%]
13+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_early_stopping PASSED [ 33%]
14+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_flash_attention_call SKIPPED [ 40%]
15+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_generate PASSED [ 46%]
16+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_generate_compilation PASSED [ 53%]
17+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_generate_with_bfloat16 PASSED [ 60%]
18+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_multitoken_stopping PASSED [ 66%]
19+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_saved_model SKIPPED [ 73%]
20+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_score_layer_intercept_fn_exfiltration PASSED [ 80%]
21+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_score_logits PASSED [ 86%]
22+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_score_loss SKIPPED [ 93%]
23+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_session PASSED [100%]
24+
25+
=============================== warnings summary ===============================
26+
../../../../../usr/lib/python3.12/multiprocessing/popen_fork.py:66
27+
../../../../../usr/lib/python3.12/multiprocessing/popen_fork.py:66
28+
/usr/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=22401) is multi-threaded, use of fork() may lead to deadlocks in the child.
29+
self.pid = os.fork()
30+
31+
../env/lib/python3.12/site-packages/openvino/runtime/__init__.py:10
32+
/home/mohamed-ashraf/Desktop/GSoC2025/env/lib/python3.12/site-packages/openvino/runtime/__init__.py:10: DeprecationWarning: The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. Please replace `openvino.runtime` with `openvino`.
33+
warnings.warn(
34+
35+
../env/lib/python3.12/site-packages/_pytest/config/__init__.py:1474
36+
/home/mohamed-ashraf/Desktop/GSoC2025/env/lib/python3.12/site-packages/_pytest/config/__init__.py:1474: PytestConfigWarning: Unknown config option: env
37+
38+
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
39+
40+
keras_hub/src/models/gemma/gemma_causal_lm_test.py::GemmaCausalLMTest::test_session
41+
/usr/lib/python3.12/unittest/case.py:690: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method TensorFlowTestCase.test_session of <keras_hub.src.models.gemma.gemma_causal_lm_test.GemmaCausalLMTest testMethod=test_session>>)
42+
return self.run(*args, **kwds)
43+
44+
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
45+
=================== 8 passed, 7 skipped, 5 warnings in 5.98s ===================

testing_files/gpt2_test.txt

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
============================= test session starts ==============================
2+
platform linux -- Python 3.12.3, pytest-8.4.0, pluggy-1.6.0 -- /home/mohamed-ashraf/Desktop/GSoC2025/env/bin/python
3+
cachedir: .pytest_cache
4+
rootdir: /home/mohamed-ashraf/Desktop/GSoC2025/keras-hub
5+
configfile: pytest.ini
6+
plugins: cov-6.1.1
7+
collecting ... collected 11 items
8+
9+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::TestCase::test_session SKIPPED [ 9%]
10+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_all_presets SKIPPED [ 18%]
11+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_causal_lm_basics SKIPPED [ 27%]
12+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_early_stopping PASSED [ 36%]
13+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_generate PASSED [ 45%]
14+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_generate_compilation PASSED [ 54%]
15+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_saved_model SKIPPED [ 63%]
16+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_score_layer_intercept_fn_exfiltration PASSED [ 72%]
17+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_score_logits PASSED [ 81%]
18+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_score_loss SKIPPED [ 90%]
19+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_session PASSED [100%]
20+
21+
=============================== warnings summary ===============================
22+
../../../../../usr/lib/python3.12/multiprocessing/popen_fork.py:66
23+
../../../../../usr/lib/python3.12/multiprocessing/popen_fork.py:66
24+
/usr/lib/python3.12/multiprocessing/popen_fork.py:66: DeprecationWarning: This process (pid=23508) is multi-threaded, use of fork() may lead to deadlocks in the child.
25+
self.pid = os.fork()
26+
27+
../env/lib/python3.12/site-packages/openvino/runtime/__init__.py:10
28+
/home/mohamed-ashraf/Desktop/GSoC2025/env/lib/python3.12/site-packages/openvino/runtime/__init__.py:10: DeprecationWarning: The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. Please replace `openvino.runtime` with `openvino`.
29+
warnings.warn(
30+
31+
../env/lib/python3.12/site-packages/_pytest/config/__init__.py:1474
32+
/home/mohamed-ashraf/Desktop/GSoC2025/env/lib/python3.12/site-packages/_pytest/config/__init__.py:1474: PytestConfigWarning: Unknown config option: env
33+
34+
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
35+
36+
keras_hub/src/models/gpt2/gpt2_causal_lm_test.py::GPT2CausalLMTest::test_session
37+
/usr/lib/python3.12/unittest/case.py:690: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method TensorFlowTestCase.test_session of <keras_hub.src.models.gpt2.gpt2_causal_lm_test.GPT2CausalLMTest testMethod=test_session>>)
38+
return self.run(*args, **kwds)
39+
40+
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
41+
=================== 6 passed, 5 skipped, 5 warnings in 6.96s ===================

0 commit comments

Comments
 (0)