featrixsphere 0.2.1461__py3-none-any.whl → 0.2.1462__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
featrixsphere/__init__.py CHANGED
@@ -38,7 +38,7 @@ Example:
38
38
  ... labels=['Experiment A', 'Experiment B'])
39
39
  """
40
40
 
41
- __version__ = "0.2.1461"
41
+ __version__ = "0.2.1462"
42
42
  __author__ = "Featrix"
43
43
  __email__ = "support@featrix.com"
44
44
  __license__ = "MIT"
featrixsphere/client.py CHANGED
@@ -4248,9 +4248,28 @@ class FeatrixSphereClient:
4248
4248
 
4249
4249
  # Get the compute cluster from the foundation model session
4250
4250
  # This ensures we upload files to the same node where the foundation model lives
4251
- foundation_session = self.get_session_status(foundation_model_id)
4252
- foundation_compute_cluster = self.get_last_server_metadata()
4253
- foundation_compute_cluster = foundation_compute_cluster.get('compute_cluster') if foundation_compute_cluster else None
4251
+ # If the foundation session doesn't exist (404), we'll proceed with current compute cluster
4252
+ foundation_compute_cluster = None
4253
+ try:
4254
+ foundation_session = self.get_session_status(foundation_model_id)
4255
+ foundation_compute_cluster = self.get_last_server_metadata()
4256
+ foundation_compute_cluster = foundation_compute_cluster.get('compute_cluster') if foundation_compute_cluster else None
4257
+ except Exception as e:
4258
+ # Foundation session might not exist or be accessible - that's okay
4259
+ # The server will validate it when we submit the training request
4260
+ if verbose:
4261
+ # Check if it's a 404 HTTP error
4262
+ is_404 = False
4263
+ if isinstance(e, requests.exceptions.HTTPError):
4264
+ if hasattr(e, 'response') and e.response.status_code == 404:
4265
+ is_404 = True
4266
+
4267
+ if is_404:
4268
+ print(f" ⚠️ Foundation session not found (404) - will use current compute cluster")
4269
+ print(f" Server will validate foundation model when training starts")
4270
+ else:
4271
+ print(f" ⚠️ Could not fetch foundation session: {e}")
4272
+ print(f" Will proceed with current compute cluster")
4254
4273
 
4255
4274
  # Temporarily set compute cluster for file uploads if we found one
4256
4275
  original_compute_cluster = self.compute_cluster
@@ -4259,6 +4278,8 @@ class FeatrixSphereClient:
4259
4278
  self.set_compute_cluster(foundation_compute_cluster)
4260
4279
  if verbose:
4261
4280
  print(f" Using compute cluster: {foundation_compute_cluster}")
4281
+ elif verbose and self.compute_cluster:
4282
+ print(f" Using current compute cluster: {self.compute_cluster}")
4262
4283
 
4263
4284
  try:
4264
4285
  # Validate that only one data source is provided
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: featrixsphere
3
- Version: 0.2.1461
3
+ Version: 0.2.1462
4
4
  Summary: Transform any CSV into a production-ready ML model in minutes, not months.
5
5
  Home-page: https://github.com/Featrix/sphere
6
6
  Author: Featrix
@@ -0,0 +1,9 @@
1
+ featrixsphere/__init__.py,sha256=oJsLRgA3q8pSL3rPso0kfVmgPoKdivl2gt4Gj3OZW_M,1888
2
+ featrixsphere/cli.py,sha256=AW9O3vCvCNJ2UxVGN66eRmeN7XLSiHJlvK6JLZ9UJXc,13358
3
+ featrixsphere/client.py,sha256=HWbVkvvZ3MZae_hfa0ChurzrSHMnxTWDW59tOcLERag,386715
4
+ featrixsphere/test_client.py,sha256=4SiRbib0ms3poK0UpnUv4G0HFQSzidF3Iswo_J2cjLk,11981
5
+ featrixsphere-0.2.1462.dist-info/METADATA,sha256=odh92kvhANd28hRmWToVCsW8hv-jb2YLpBdFegOHNkM,16232
6
+ featrixsphere-0.2.1462.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ featrixsphere-0.2.1462.dist-info/entry_points.txt,sha256=QreJeYfD_VWvbEqPmMXZ3pqqlFlJ1qZb-NtqnyhEldc,51
8
+ featrixsphere-0.2.1462.dist-info/top_level.txt,sha256=AyN4wjfzlD0hWnDieuEHX0KckphIk_aC73XCG4df5uU,14
9
+ featrixsphere-0.2.1462.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- featrixsphere/__init__.py,sha256=lES5H__B_mdE-8UdrooDOZ0ttmWZ4VuBt0ub6-cHkxQ,1888
2
- featrixsphere/cli.py,sha256=AW9O3vCvCNJ2UxVGN66eRmeN7XLSiHJlvK6JLZ9UJXc,13358
3
- featrixsphere/client.py,sha256=P7tLWX7yfo0w3Ctug71N3Jk124ITJpiqs1dH6wk3iBY,385519
4
- featrixsphere/test_client.py,sha256=4SiRbib0ms3poK0UpnUv4G0HFQSzidF3Iswo_J2cjLk,11981
5
- featrixsphere-0.2.1461.dist-info/METADATA,sha256=-df_LYBCPHyIYHS4x39EclimcS7vYcVwYVA3KPSkOcg,16232
6
- featrixsphere-0.2.1461.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- featrixsphere-0.2.1461.dist-info/entry_points.txt,sha256=QreJeYfD_VWvbEqPmMXZ3pqqlFlJ1qZb-NtqnyhEldc,51
8
- featrixsphere-0.2.1461.dist-info/top_level.txt,sha256=AyN4wjfzlD0hWnDieuEHX0KckphIk_aC73XCG4df5uU,14
9
- featrixsphere-0.2.1461.dist-info/RECORD,,