Loading weights: 0%| | 0/391 [00:00 def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback /usr/lib/python3.13/reprlib.py:12: ResourceWarning: unclosed database in def decorating_function(user_function): ResourceWarning: Enable tracemalloc to get the object allocation traceback ....................................................................................................................................................................[eval] UYARI: dondurulmus judge kumesindeki 2 id bu golden set'te YOK: ['yok1', 'yok2']... ./home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/tests/unit/test_eval_judge_sampling.py:150: ResourceWarning: unclosed file <_io.TextIOWrapper name='tests/golden/golden_12bio_v1.json' mode='r' encoding='utf-8'> return json.load(open(path, encoding="utf-8"))["items"] ResourceWarning: Enable tracemalloc to get the object allocation traceback ./home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/tests/unit/test_eval_judge_sampling.py:150: ResourceWarning: unclosed file <_io.TextIOWrapper name='tests/golden/golden_12kimya_v1.json' mode='r' encoding='utf-8'> return json.load(open(path, encoding="utf-8"))["items"] ResourceWarning: Enable tracemalloc to get the object allocation traceback /home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/tests/unit/test_eval_judge_sampling.py:150: ResourceWarning: unclosed file <_io.TextIOWrapper name='tests/golden/golden_12fizik_v1.json' mode='r' encoding='utf-8'> return json.load(open(path, encoding="utf-8"))["items"] ResourceWarning: Enable tracemalloc to get the object allocation traceback ................................................../home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/src/generate/generator.py:501: UserWarning: pricing: bilinmeyen model 'stub' (çözülen 'stub') → maliyet 0.0 sayıldı; pricing.PRICING'e ekle. usd = pricing_cost_usd(result.model, result.usage) ./home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/src/costlog.py:184: UserWarning: pricing: bilinmeyen model 'stub' (çözülen 'stub') → maliyet 0.0 sayıldı; pricing.PRICING'e ekle. usd = cost_usd(model, usage, tier) # saf hesap — kilidin DIŞINDA ..................................s................................................................................................................................................................................................/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/pydantic/fields.py:257: ResourceWarning: unclosed database in alias_is_set = any(alias is not None for alias in (self.alias, self.validation_alias, self.serialization_alias)) ResourceWarning: Enable tracemalloc to get the object allocation traceback /home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/pydantic/fields.py:257: ResourceWarning: unclosed database in alias_is_set = any(alias is not None for alias in (self.alias, self.validation_alias, self.serialization_alias)) ResourceWarning: Enable tracemalloc to get the object allocation traceback /home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/pydantic/fields.py:257: ResourceWarning: unclosed database in alias_is_set = any(alias is not None for alias in (self.alias, self.validation_alias, self.serialization_alias)) ResourceWarning: Enable tracemalloc to get the object allocation traceback /home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/pydantic/fields.py:257: ResourceWarning: unclosed database in alias_is_set = any(alias is not None for alias in (self.alias, self.validation_alias, self.serialization_alias)) ResourceWarning: Enable tracemalloc to get the object allocation traceback /home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/pydantic/fields.py:257: ResourceWarning: unclosed database in alias_is_set = any(alias is not None for alias in (self.alias, self.validation_alias, self.serialization_alias)) ResourceWarning: Enable tracemalloc to get the object allocation traceback /home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/pydantic/fields.py:257: ResourceWarning: unclosed database in alias_is_set = any(alias is not None for alias in (self.alias, self.validation_alias, self.serialization_alias)) ResourceWarning: Enable tracemalloc to get the object allocation traceback ......................................................../home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/src/generate/question_gen.py:131: UserWarning: pricing: bilinmeyen model 'stub' (çözülen 'stub') → maliyet 0.0 sayıldı; pricing.PRICING'e ekle. usd = pricing_cost_usd(result.model, result.usage) ............/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/src/summarize/summarizer.py:178: UserWarning: pricing: bilinmeyen model 'stub' (çözülen 'stub') → maliyet 0.0 sayıldı; pricing.PRICING'e ekle. usd = pricing_cost_usd(result.model, result.usage) .............................................................................................s........................................................................................................................................................................................... ====================================================================== ERROR: setUpClass (e2e.test_pipeline_e2e.PipelineE2ETests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/tests/e2e/test_pipeline_e2e.py", line 77, in setUpClass cls.doc, cls.children, cls.by_id, cls.retr, cls.span_meta = _build() ~~~~~~^^ File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/tests/e2e/test_pipeline_e2e.py", line 55, in _build _, vecs = emb.embed_chunks(children, batch_size=8) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/src/embed/embedder.py", line 175, in embed_chunks vecs = self.embed([c.text for c in chunks], batch_size=batch_size) File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/src/embed/embedder.py", line 146, in embed out = self._load().encode(texts, batch_size=batch_size, max_length=self.max_length, return_dense=True, return_sparse=False) File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/FlagEmbedding/inference/embedder/encoder_only/m3.py", line 301, in encode return super().encode( ~~~~~~~~~~~~~~^ sentences, ^^^^^^^^^^ ...<5 lines>... **kwargs ^^^^^^^^ ) ^ File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/FlagEmbedding/abc/inference/AbsEmbedder.py", line 279, in encode return self.encode_single_device( ~~~~~~~~~~~~~~~~~~~~~~~~~^ sentences, ^^^^^^^^^^ ...<4 lines>... **kwargs ^^^^^^^^ ) ^ File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/torch/utils/_contextlib.py", line 124, in decorate_context return func(*args, **kwargs) File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/FlagEmbedding/inference/embedder/encoder_only/m3.py", line 346, in encode_single_device self.model.to(device) ~~~~~~~~~~~~~^^^^^^^^ File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1388, in to return self._apply(convert) ~~~~~~~~~~~^^^^^^^^^ File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/torch/nn/modules/module.py", line 933, in _apply module._apply(fn) ~~~~~~~~~~~~~^^^^ File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/torch/nn/modules/module.py", line 933, in _apply module._apply(fn) ~~~~~~~~~~~~~^^^^ File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/torch/nn/modules/module.py", line 933, in _apply module._apply(fn) ~~~~~~~~~~~~~^^^^ File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/torch/nn/modules/module.py", line 966, in _apply param_applied = fn(param) File "/home/kadiryonak/Masaüstü/Kodlama/HelloWorld/Hezarfen/hezarfen_rag/.venv/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1374, in convert return t.to( ~~~~^ device, ^^^^^^^ dtype if t.is_floating_point() or t.is_complex() else None, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ non_blocking, ^^^^^^^^^^^^^ ) ^ torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 490.00 MiB. GPU 0 has a total capacity of 7.65 GiB of which 58.88 MiB is free. Including non-PyTorch memory, this process has 7.57 GiB memory in use. Of the allocated memory 7.42 GiB is allocated by PyTorch, and 30.62 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://docs.pytorch.org/docs/stable/notes/cuda.html#optimizing-memory-usage-with-pytorch-cuda-alloc-conf) ---------------------------------------------------------------------- Ran 993 tests in 185.617s FAILED (errors=1, skipped=2)