psaiops 0.1.0__py3-none-any.whl → 0.1.1__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.
psaiops/score/attention/app.py
CHANGED
|
@@ -18,7 +18,7 @@ MODEL = 'openai/gpt-oss-20b'
|
|
|
18
18
|
|
|
19
19
|
def create_color_map() -> dict:
|
|
20
20
|
return {
|
|
21
|
-
'-1': '#
|
|
21
|
+
'-1': '#004444',
|
|
22
22
|
**{str(__i): '#{:02x}0000'.format(int(2.55 * __i)) for __i in range(101)}}
|
|
23
23
|
|
|
24
24
|
# INTRO ########################################################################
|
|
@@ -65,13 +65,13 @@ def create_inputs_block() -> dict:
|
|
|
65
65
|
# OUTPUTS ######################################################################
|
|
66
66
|
|
|
67
67
|
def create_outputs_block() -> dict:
|
|
68
|
-
__output = gradio.HighlightedText(label='Scores', value='', scale=1, interactive=False, show_legend=False, show_inline_category=False, combine_adjacent=
|
|
68
|
+
__output = gradio.HighlightedText(label='Scores', value='', scale=1, interactive=False, show_legend=False, show_inline_category=False, combine_adjacent=False, color_map=create_color_map(), elem_classes='white-text')
|
|
69
69
|
return {'output_block': __output}
|
|
70
70
|
|
|
71
71
|
# SELECT #######################################################################
|
|
72
72
|
|
|
73
73
|
def create_selection_block() -> dict:
|
|
74
|
-
__position = gradio.Slider(label='Position', value=-1, minimum=-1, maximum=15, step=1, scale=1, interactive=True) # info='-1 to average on all tokens'
|
|
74
|
+
__position = gradio.Slider(label='Token Position', value=-1, minimum=-1, maximum=15, step=1, scale=1, interactive=True) # info='-1 to average on all tokens'
|
|
75
75
|
__layer = gradio.Slider(label='Layer Depth', value=12, minimum=-1, maximum=23, step=1, scale=1, interactive=True) # info='-1 to average on all layers'
|
|
76
76
|
__head = gradio.Slider(label='Attention Head', value=-1, minimum=-1, maximum=63, step=1, scale=1, interactive=True) # info='-1 to average on all heads'
|
|
77
77
|
return {
|
|
@@ -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=
|
|
10
|
+
psaiops/score/attention/app.py,sha256=7MwFp70W0zpIcxllM2hKHN7TW3WH-BGFNK3r9a1ISr0,13444
|
|
11
11
|
psaiops/score/attention/lib.py,sha256=j9p7ZXhkh5Y9VDeIe6TPUUrHRkwp1Y6P22iciaaKdL4,6932
|
|
12
12
|
psaiops/steer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
psaiops-0.1.
|
|
14
|
-
psaiops-0.1.
|
|
15
|
-
psaiops-0.1.
|
|
13
|
+
psaiops-0.1.1.dist-info/METADATA,sha256=z1BSlHN08aw56S5ToC468mFXRTAiY-TwmcWsewn6lec,1221
|
|
14
|
+
psaiops-0.1.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
15
|
+
psaiops-0.1.1.dist-info/RECORD,,
|
|
File without changes
|