kalavai-client 0.6.9__py3-none-any.whl → 0.6.11__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.
@@ -1,2 +1,2 @@
1
1
 
2
- __version__ = "0.6.9"
2
+ __version__ = "0.6.11"
@@ -152,7 +152,7 @@ releases:
152
152
  - name: replicas
153
153
  value: 1
154
154
  - name: image_tag
155
- value: "v2025.04.2"
155
+ value: "v2025.05.1"
156
156
  - name: deployment.in_cluster
157
157
  value: "True"
158
158
  - name: deployment.kalavai_username_key
kalavai_client/core.py CHANGED
@@ -550,7 +550,7 @@ def uncordon_nodes(nodes):
550
550
 
551
551
  def attach_to_pool(token, node_name=None):
552
552
  if node_name is None:
553
- node_name = f"{socket.gethostname()}-{uuid.uuid4().hex[:6]}"
553
+ node_name = socket.gethostname()
554
554
 
555
555
  # check token
556
556
  valid = check_token(token=token)
@@ -651,7 +651,7 @@ def join_pool(token, num_gpus=None, node_name=None, ip_address=None):
651
651
  num_gpus = get_max_gpus()
652
652
 
653
653
  if node_name is None:
654
- node_name = f"{socket.gethostname()}-{uuid.uuid4().hex[:6]}"
654
+ node_name = socket.gethostname()
655
655
 
656
656
  # check token
657
657
  valid = check_token(token=token)
@@ -743,7 +743,7 @@ def create_pool(
743
743
  if pool_config_values is None:
744
744
  pool_config_values = POOL_CONFIG_DEFAULT_VALUES
745
745
 
746
- node_name = f"{socket.gethostname()}-{uuid.uuid4().hex[:6]}"
746
+ node_name = socket.gethostname()
747
747
  user_id = load_user_id()
748
748
 
749
749
  node_labels = {
kalavai_client/env.py CHANGED
@@ -4,6 +4,7 @@ import importlib.resources
4
4
 
5
5
 
6
6
  DEFAULT_KALAVAI_PATH = os.getenv("KALAVAI_PATH", "")
7
+ KALAVAI_USER_ID = os.getenv("KALAVAI_USER_ID", None)
7
8
 
8
9
  def user_path(relative_path, create_path=False):
9
10
  """Transform a relative path into the user's cache folder path"""
kalavai_client/utils.py CHANGED
@@ -22,11 +22,10 @@ from kalavai_client.env import (
22
22
  CONTAINER_HOST_PATH,
23
23
  USER_COMPOSE_FILE,
24
24
  USER_COOKIE,
25
+ KALAVAI_USER_ID,
25
26
  user_path
26
27
  )
27
28
 
28
- KALAVAI_USER_ID = os.getenv("KALAVAI_USER_ID", None)
29
-
30
29
  GITHUB_ORG = "kalavai-net"
31
30
  GITHUB_REPO = "kalavai-client"
32
31
  GITHUB_TEMPLATE_PATH = "templates"
@@ -150,7 +149,6 @@ def is_watcher_alive(server_creds, user_cookie, timeout=30):
150
149
  return True
151
150
 
152
151
 
153
-
154
152
  def load_server_info(data_key, file):
155
153
  try:
156
154
  with open(file, "r") as f:
@@ -160,13 +158,17 @@ def load_server_info(data_key, file):
160
158
 
161
159
  def load_user_session():
162
160
  if KALAVAI_USER_ID is None:
163
- KALAVAI_USER_ID = KALAVAI_AUTH.load_user_session()
164
- return KALAVAI_USER_ID
161
+ user_id = KALAVAI_AUTH.load_user_session()
162
+ else:
163
+ user_id = KALAVAI_USER_ID
164
+ return user_id
165
165
 
166
166
  def load_user_id():
167
167
  if KALAVAI_USER_ID is None:
168
- KALAVAI_USER_ID = KALAVAI_AUTH.get_user_id()
169
- return KALAVAI_USER_ID
168
+ user_id = KALAVAI_AUTH.get_user_id()
169
+ else:
170
+ user_id = KALAVAI_USER_ID
171
+ return user_id
170
172
 
171
173
  def get_public_seeds(user_only, user_cookie):
172
174
  return []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kalavai-client
3
- Version: 0.6.9
3
+ Version: 0.6.11
4
4
  Summary: Client app for kalavai platform
5
5
  License: Apache-2.0
6
6
  Keywords: LLM,platform
@@ -1,7 +1,7 @@
1
- kalavai_client/__init__.py,sha256=Wq8edGb8mJnrkhLOYoYciW1vQDOBpxsVgyoevepIPdY,22
1
+ kalavai_client/__init__.py,sha256=zwtj4vCrFiVTD64_z_aOcQEd4e6fh1p4stA-zJ5gMVk,23
2
2
  kalavai_client/__main__.py,sha256=WQUfxvRsBJH5gsCJg8pLz95QnZIj7Ol8psTO77m0QE0,73
3
3
  kalavai_client/assets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- kalavai_client/assets/apps.yaml,sha256=Wu2Pk3k4I_S3r_rW9bNDWMWIm5gzNpmz0K6agNH3YMg,6365
4
+ kalavai_client/assets/apps.yaml,sha256=I06ThYKvztybwNLQZpsdSvUrS_AFkLVM1z3klwSKHYk,6365
5
5
  kalavai_client/assets/apps_values.yaml,sha256=WRew3bS1MztjzcJfphuJcKn0n2T1ICRupPpr_Csjt_s,1644
6
6
  kalavai_client/assets/docker-compose-gui.yaml,sha256=DGCyGYzz1kH6kkMbo62FJHe3F9vcAmA8DOHw-c_o0Kw,752
7
7
  kalavai_client/assets/docker-compose-template.yaml,sha256=Nz_JzeBnQCzPCyWP5cEQHFeZzPwQqqBJ3C_xrToWlMA,1654
@@ -15,11 +15,11 @@ kalavai_client/bridge_api.py,sha256=KecIZvsGRiZgUQaDSgvRBLaqPDBhxFKS6FBH_w5ArCc,
15
15
  kalavai_client/bridge_models.py,sha256=IGPLAYEZG4f5EUtBuoR2u_cYoyCCVkhx4H2rMeGuJ_Y,1030
16
16
  kalavai_client/cli.py,sha256=tBn3l12XhOJF17cWeX84xm10HPG7rSzalyOyugzcLhw,46900
17
17
  kalavai_client/cluster.py,sha256=ojUBXp2bR3hVyikIEkiGDbXvQfhBXBSk_mCqLxvyP0c,12943
18
- kalavai_client/core.py,sha256=bi8r7Twh2aQEDNn1shySlwx4704KG1pDmgMSSkzA1qk,32641
19
- kalavai_client/env.py,sha256=wAd-P8XDlDB8Oau76f0bG2aHTkNA793xb_V0frbNeJE,2770
20
- kalavai_client/utils.py,sha256=J5pYuEhxDrYvbF-fzG85hj_MYR6PxFnJtac73yw_dKg,12254
21
- kalavai_client-0.6.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
- kalavai_client-0.6.9.dist-info/METADATA,sha256=EE_gA21-UGqS8aOsmFTCgaZGD5YuUZa1z6_hSR5YgHo,13353
23
- kalavai_client-0.6.9.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
24
- kalavai_client-0.6.9.dist-info/entry_points.txt,sha256=9T6D45gxwzfVbglMm1r6XPdXuuZdHfy_7fCeu2jUphc,50
25
- kalavai_client-0.6.9.dist-info/RECORD,,
18
+ kalavai_client/core.py,sha256=ms39sUVWN27f15UPozlXR5iEspSMos7o1NlaNUNrgHA,32557
19
+ kalavai_client/env.py,sha256=YsfZj7LWf6ABquDsoIFFkXCFYwenpDk8zVnGsf7qv98,2823
20
+ kalavai_client/utils.py,sha256=EmjWVLjTBILjw87_6ih_v5CbVqihsYHSKxfD-C_Z-es,12276
21
+ kalavai_client-0.6.11.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
+ kalavai_client-0.6.11.dist-info/METADATA,sha256=S2W28vKlv-OmfFNjwo6l9pHIx_FpNPoOf9lOOh9X_5c,13354
23
+ kalavai_client-0.6.11.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
24
+ kalavai_client-0.6.11.dist-info/entry_points.txt,sha256=9T6D45gxwzfVbglMm1r6XPdXuuZdHfy_7fCeu2jUphc,50
25
+ kalavai_client-0.6.11.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.2
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any