psaiops 0.0.9__py3-none-any.whl → 0.0.10__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.

Potentially problematic release.


This version of psaiops might be problematic. Click here for more details.

@@ -10,7 +10,7 @@ import psaiops.score.attention.lib
10
10
 
11
11
  TITLE = '''Attention Scoring'''
12
12
  INTRO = '''Score each token according to the weights of the attention layers.\nThe model is fixed to "openai/gpt-oss-20b" for now.'''
13
- STYLE = ''''''
13
+ STYLE = '''.white-text span { color: white; }'''
14
14
 
15
15
  MODEL = 'openai/gpt-oss-20b'
16
16
 
@@ -19,7 +19,7 @@ MODEL = 'openai/gpt-oss-20b'
19
19
  def create_color_map() -> dict:
20
20
  return {
21
21
  '-1': '#00ff00',
22
- **{str(__i): '#{:02x}0000'.format(__i) for __i in range(101)}}
22
+ **{str(__i): '#{:02x}0000'.format(int(2.55 * __i)) for __i in range(101)}}
23
23
 
24
24
  # INTRO ########################################################################
25
25
 
@@ -65,7 +65,7 @@ def create_inputs_block() -> dict:
65
65
  # OUTPUTS ######################################################################
66
66
 
67
67
  def create_outputs_block() -> dict:
68
- __output = gradio.HighlightedText(label='Scores', value='', interactive=False, show_legend=False, show_inline_category=False, combine_adjacent=True, color_map=create_color_map())
68
+ __output = gradio.HighlightedText(label='Scores', value='', interactive=False, show_legend=False, show_inline_category=False, combine_adjacent=True, color_map=create_color_map(), elem_classes='white-text')
69
69
  return {'output_block': __output}
70
70
 
71
71
  # ACTIONS ######################################################################
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: psaiops
3
- Version: 0.0.9
3
+ Version: 0.0.10
4
4
  Summary: Web apps to inspect & engineer NN activations.
5
5
  License: .github/LICENSE.md
6
6
  Author: apehex
@@ -7,9 +7,9 @@ psaiops/elements/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
7
7
  psaiops/elements/data.py,sha256=vGYeMN11uP9gs8rV6aSDffE_TeIX5PmdzWGwUpdGE2Y,906
8
8
  psaiops/score/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  psaiops/score/attention/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- psaiops/score/attention/app.py,sha256=E4XKNXEGwcL5ceOVy6twd88IeFoR6RHxZ5C4Arn9jhM,6973
10
+ psaiops/score/attention/app.py,sha256=Kp4Y4Qv9OkrezsqYdFLLWKmyAhC9BPv5J93-vQLRToM,7046
11
11
  psaiops/score/attention/lib.py,sha256=vWm8e_xUkM4ahgYQfaNK_kpU9eGkKAGHfgA-Sm1htmc,6869
12
12
  psaiops/steer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- psaiops-0.0.9.dist-info/METADATA,sha256=RiCvOFOoW8q4vUzNngllFcUhC-QeiDD6_TPiy8wSOEA,1221
14
- psaiops-0.0.9.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
15
- psaiops-0.0.9.dist-info/RECORD,,
13
+ psaiops-0.0.10.dist-info/METADATA,sha256=DP3q2K3C6jPQQI46mMY-7Vm-yQNJ04hG9ETqjyHLnLo,1222
14
+ psaiops-0.0.10.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
15
+ psaiops-0.0.10.dist-info/RECORD,,