lxylxy123321 пре 1 недеља
родитељ
комит
03c7d1c48e
2 измењених фајлова са 99 додато и 102 уклоњено
  1. 2 0
      frontend/nginx.conf
  2. 97 102
      result.txt

+ 2 - 0
frontend/nginx.conf

@@ -16,6 +16,7 @@ server {
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Proto $scheme;
+        proxy_read_timeout 600s;
     }
 
     # WebSocket 代理
@@ -27,5 +28,6 @@ server {
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+        proxy_read_timeout 600s;
     }
 }

+ 97 - 102
result.txt

@@ -1,102 +1,97 @@
-(base) [root@localhost Fine-tuning]# docker logs finetune-backend 2>&1 | head -100
-Traceback (most recent call last):
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/sources/base.py", line 551, in __call__
-    field_value = self.prepare_field_value(field_name, field, field_value, value_is_complex)
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/sources/providers/env.py", line 134, in prepare_field_value
-    raise e
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/sources/providers/env.py", line 131, in prepare_field_value
-    value = self.decode_complex_value(field_name, field, value)
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/sources/base.py", line 194, in decode_complex_value
-    return json.loads(value)
-  File "/opt/conda/lib/python3.10/json/__init__.py", line 346, in loads
-    return _default_decoder.decode(s)
-  File "/opt/conda/lib/python3.10/json/decoder.py", line 337, in decode
-    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
-  File "/opt/conda/lib/python3.10/json/decoder.py", line 355, in raw_decode
-    raise JSONDecodeError("Expecting value", s, err.value) from None
-json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
-
-The above exception was the direct cause of the following exception:
-
-Traceback (most recent call last):
-  File "/opt/conda/bin/uvicorn", line 8, in <module>
-    sys.exit(main())
-  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1442, in __call__
-    return self.main(*args, **kwargs)
-  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1363, in main
-    rv = self.invoke(ctx)
-  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1226, in invoke
-    return ctx.invoke(self.callback, **ctx.params)
-  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 794, in invoke
-    return callback(*args, **kwargs)
-  File "/opt/conda/lib/python3.10/site-packages/uvicorn/main.py", line 441, in main
-    run(
-  File "/opt/conda/lib/python3.10/site-packages/uvicorn/main.py", line 617, in run
-    server.run()
-  File "/opt/conda/lib/python3.10/site-packages/uvicorn/server.py", line 75, in run
-    return asyncio_run(self.serve(sockets=sockets), loop_factory=self.config.get_loop_factory())
-  File "/opt/conda/lib/python3.10/site-packages/uvicorn/_compat.py", line 60, in asyncio_run
-    return loop.run_until_complete(main)
-  File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
-  File "/opt/conda/lib/python3.10/site-packages/uvicorn/server.py", line 79, in serve
-    await self._serve(sockets)
-  File "/opt/conda/lib/python3.10/site-packages/uvicorn/server.py", line 86, in _serve
-    config.load()
-  File "/opt/conda/lib/python3.10/site-packages/uvicorn/config.py", line 449, in load
-    self.loaded_app = import_from_string(self.app)
-  File "/opt/conda/lib/python3.10/site-packages/uvicorn/importer.py", line 19, in import_from_string
-    module = importlib.import_module(module_str)
-  File "/opt/conda/lib/python3.10/importlib/__init__.py", line 126, in import_module
-    return _bootstrap._gcd_import(name[level:], package, level)
-  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
-  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
-  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
-  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
-  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
-  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
-  File "/app/main.py", line 8, in <module>
-    settings = get_settings()
-  File "/app/app/config.py", line 99, in get_settings
-    settings = Settings()
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/main.py", line 247, in __init__
-    super().__init__(**__pydantic_self__.__class__._settings_build_values(sources, init_kwargs))
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/main.py", line 470, in _settings_build_values
-    source_state = source()
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/sources/base.py", line 553, in __call__
-    raise SettingsError(
-pydantic_settings.exceptions.SettingsError: error parsing value for field "backend_cors_origins" from source "EnvSettingsSource"
-Traceback (most recent call last):
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/sources/base.py", line 551, in __call__
-    field_value = self.prepare_field_value(field_name, field, field_value, value_is_complex)
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/sources/providers/env.py", line 134, in prepare_field_value
-    raise e
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/sources/providers/env.py", line 131, in prepare_field_value
-    value = self.decode_complex_value(field_name, field, value)
-  File "/opt/conda/lib/python3.10/site-packages/pydantic_settings/sources/base.py", line 194, in decode_complex_value
-    return json.loads(value)
-  File "/opt/conda/lib/python3.10/json/__init__.py", line 346, in loads
-    return _default_decoder.decode(s)
-  File "/opt/conda/lib/python3.10/json/decoder.py", line 337, in decode
-    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
-  File "/opt/conda/lib/python3.10/json/decoder.py", line 355, in raw_decode
-    raise JSONDecodeError("Expecting value", s, err.value) from None
-json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
-
-The above exception was the direct cause of the following exception:
-
-Traceback (most recent call last):
-  File "/opt/conda/bin/uvicorn", line 8, in <module>
-    sys.exit(main())
-  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1442, in __call__
-    return self.main(*args, **kwargs)
-  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1363, in main
-    rv = self.invoke(ctx)
-  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 1226, in invoke
-    return ctx.invoke(self.callback, **ctx.params)
-  File "/opt/conda/lib/python3.10/site-packages/click/core.py", line 794, in invoke
-    return callback(*args, **kwargs)
-  File "/opt/conda/lib/python3.10/site-packages/uvicorn/main.py", line 441, in main
-    run(
-  File "/opt/conda/lib/python3.10/site-packages/uvicorn/main.py", line 617, in run
-    server.run()
-(base) [root@localhost Fine-tuning]# 
+base) [root@localhost Fine-tuning]# docker exec finetune-backend cat /root/Fine-tuning/backend/data/models/Qwen/Qwen3.5-0.8B/config.json
+{
+    "architectures": [
+        "Qwen3_5ForConditionalGeneration"
+    ],
+    "image_token_id": 248056,
+    "model_type": "qwen3_5",
+    "text_config": {
+        "attention_bias": false,
+        "attention_dropout": 0.0,
+        "attn_output_gate": true,
+        "dtype": "bfloat16",
+        "eos_token_id": 248044,
+        "full_attention_interval": 4,
+        "head_dim": 256,
+        "hidden_act": "silu",
+        "hidden_size": 1024,
+        "initializer_range": 0.02,
+        "intermediate_size": 3584,
+        "layer_types": [
+            "linear_attention",
+            "linear_attention",
+            "linear_attention",
+            "full_attention",
+            "linear_attention",
+            "linear_attention",
+            "linear_attention",
+            "full_attention",
+            "linear_attention",
+            "linear_attention",
+            "linear_attention",
+            "full_attention",
+            "linear_attention",
+            "linear_attention",
+            "linear_attention",
+            "full_attention",
+            "linear_attention",
+            "linear_attention",
+            "linear_attention",
+            "full_attention",
+            "linear_attention",
+            "linear_attention",
+            "linear_attention",
+            "full_attention"
+        ],
+        "linear_conv_kernel_dim": 4,
+        "linear_key_head_dim": 128,
+        "linear_num_key_heads": 16,
+        "linear_num_value_heads": 16,
+        "linear_value_head_dim": 128,
+        "max_position_embeddings": 262144,
+        "mlp_only_layers": [],
+        "model_type": "qwen3_5_text",
+        "mtp_num_hidden_layers": 1,
+        "mtp_use_dedicated_embeddings": false,
+        "num_attention_heads": 8,
+        "num_hidden_layers": 24,
+        "num_key_value_heads": 2,
+        "rms_norm_eps": 1e-06,
+        "tie_word_embeddings": true,
+        "use_cache": true,
+        "vocab_size": 248320,
+        "mamba_ssm_dtype": "float32",
+        "rope_parameters": {
+            "mrope_interleaved": true,
+            "mrope_section": [
+                11,
+                11,
+                10
+            ],
+            "rope_type": "default",
+            "rope_theta": 10000000,
+            "partial_rotary_factor": 0.25
+        }
+    },
+    "tie_word_embeddings": true,
+    "transformers_version": "4.57.0.dev0",
+    "video_token_id": 248057,
+    "vision_config": {
+        "deepstack_visual_indexes": [],
+        "depth": 12,
+        "hidden_act": "gelu_pytorch_tanh",
+        "hidden_size": 768,
+        "in_channels": 3,
+        "initializer_range": 0.02,
+        "intermediate_size": 3072,
+        "model_type": "qwen3_5",
+        "num_heads": 12,
+        "num_position_embeddings": 2304,
+        "out_hidden_size": 1024,
+        "patch_size": 16,
+        "spatial_merge_size": 2,
+        "temporal_patch_size": 2
+    },
+    "vision_end_token_id": 248054,
+    "vision_start_token_id": 248053
+}(base) [root@localhost Fine-tuning]#