Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Transformerlab App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
TransformerLab
Transformerlab App
Commits
202979b3
Commit
202979b3
authored
1 year ago
by
ali asaria
Browse files
Options
Downloads
Patches
Plain Diff
temporarily make the maximum length input an input box instead of slider
parent
b24c820b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/renderer/components/Experiment/Interact/Interact.tsx
+13
-2
13 additions, 2 deletions
src/renderer/components/Experiment/Interact/Interact.tsx
with
13 additions
and
2 deletions
src/renderer/components/Experiment/Interact/Interact.tsx
+
13
−
2
View file @
202979b3
...
...
@@ -19,6 +19,7 @@ import {
ListItemContent
,
ListItemButton
,
IconButton
,
Input
,
}
from
'
@mui/joy
'
;
import
ChatPage
from
'
./ChatPage
'
;
...
...
@@ -471,16 +472,26 @@ export default function Chat({ experimentInfo, experimentInfoMutate }) {
Maximum Length
<
span
style
=
{
{
color
:
'
#aaa
'
}
}
>
{
maxTokens
}
</
span
>
</
FormLabel
>
<
Slider
{
/*
<Slider
sx={{ margin: 'auto', width: '90%' }}
defaultValue={64}
min={0}
max
=
{
256
*
4
}
max={256 *
10
}
value={maxTokens}
onChange={(event: Event, newValue: number | number[]) => {
setMaxTokens(newValue as number);
}}
valueLabelDisplay="auto"
/> */
}
{
/* Temporarily make the slider a text input until we can deduce the context length as max */
}
<
Input
sx
=
{
{
margin
:
'
auto
'
,
width
:
'
90%
'
,
mb
:
2
}
}
variant
=
"plain"
defaultValue
=
{
1024
}
value
=
{
maxTokens
}
onChange
=
{
(
e
)
=>
{
setMaxTokens
(
e
.
target
.
value
);
}
}
/>
<
FormLabel
>
Top P
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment