Spaces:
Sleeping
Sleeping
design
Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte
CHANGED
|
@@ -340,7 +340,7 @@
|
|
| 340 |
compatibleModels={models}
|
| 341 |
on:modelIdxChange={(e) => changeSelectedModel(e.detail)}
|
| 342 |
/>
|
| 343 |
-
<div
|
| 344 |
class="group relative -mt-4 flex h-[26px] w-full items-center justify-center gap-2 rounded-lg bg-black px-5 text-sm text-white hover:bg-gray-900 focus:outline-none focus:ring-4 focus:ring-gray-300 dark:border-gray-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-gray-700"
|
| 345 |
>
|
| 346 |
Compare with...
|
|
@@ -363,7 +363,7 @@
|
|
| 363 |
<option value={model.id}>{model.id}</option>
|
| 364 |
{/each}
|
| 365 |
</select>
|
| 366 |
-
</div>
|
| 367 |
|
| 368 |
<PlaygroundOptions bind:conversation={conversations[0]} />
|
| 369 |
<div class="mt-auto">
|
|
@@ -387,3 +387,284 @@
|
|
| 387 |
</div>
|
| 388 |
{/if}
|
| 389 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 340 |
compatibleModels={models}
|
| 341 |
on:modelIdxChange={(e) => changeSelectedModel(e.detail)}
|
| 342 |
/>
|
| 343 |
+
<!-- <div
|
| 344 |
class="group relative -mt-4 flex h-[26px] w-full items-center justify-center gap-2 rounded-lg bg-black px-5 text-sm text-white hover:bg-gray-900 focus:outline-none focus:ring-4 focus:ring-gray-300 dark:border-gray-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-gray-700"
|
| 345 |
>
|
| 346 |
Compare with...
|
|
|
|
| 363 |
<option value={model.id}>{model.id}</option>
|
| 364 |
{/each}
|
| 365 |
</select>
|
| 366 |
+
</div> -->
|
| 367 |
|
| 368 |
<PlaygroundOptions bind:conversation={conversations[0]} />
|
| 369 |
<div class="mt-auto">
|
|
|
|
| 387 |
</div>
|
| 388 |
{/if}
|
| 389 |
</div>
|
| 390 |
+
|
| 391 |
+
<!-- only a html mockup -->
|
| 392 |
+
<div class="fixed inset-0 flex h-screen items-start justify-center bg-black/85 pt-32">
|
| 393 |
+
<div class="flex w-full max-w-[600px] items-start justify-center p-10">
|
| 394 |
+
<div
|
| 395 |
+
class="flex h-full w-full flex-col overflow-hidden rounded-lg border bg-white text-gray-900 shadow-md"
|
| 396 |
+
>
|
| 397 |
+
<div class="flex items-center border-b px-3">
|
| 398 |
+
<svg
|
| 399 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 400 |
+
class="mr-2 text-sm"
|
| 401 |
+
width="1em"
|
| 402 |
+
height="1em"
|
| 403 |
+
viewBox="0 0 24 24"
|
| 404 |
+
fill="none"
|
| 405 |
+
stroke="currentColor"
|
| 406 |
+
stroke-width="2"
|
| 407 |
+
stroke-linecap="round"
|
| 408 |
+
stroke-linejoin="round"
|
| 409 |
+
>
|
| 410 |
+
<circle cx="11" cy="11" r="8"></circle>
|
| 411 |
+
<path d="m21 21-4.3-4.3"></path>
|
| 412 |
+
</svg>
|
| 413 |
+
<input
|
| 414 |
+
autofocus
|
| 415 |
+
class="flex h-10 w-full rounded-md bg-transparent py-3 text-sm placeholder-gray-400 outline-none"
|
| 416 |
+
placeholder="Search models..."
|
| 417 |
+
value=""
|
| 418 |
+
/>
|
| 419 |
+
</div>
|
| 420 |
+
<div class="max-h-[300px] overflow-y-auto overflow-x-hidden">
|
| 421 |
+
<div class="p-1">
|
| 422 |
+
<div class="px-2 py-1.5 text-xs font-medium text-gray-500">Trending</div>
|
| 423 |
+
<div>
|
| 424 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 425 |
+
<svg
|
| 426 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 427 |
+
width="24"
|
| 428 |
+
height="24"
|
| 429 |
+
viewBox="0 0 24 24"
|
| 430 |
+
fill="none"
|
| 431 |
+
stroke="currentColor"
|
| 432 |
+
stroke-width="2"
|
| 433 |
+
stroke-linecap="round"
|
| 434 |
+
stroke-linejoin="round"
|
| 435 |
+
class="lucide lucide-star mr-2 h-4 w-4 text-yellow-400"
|
| 436 |
+
><polygon
|
| 437 |
+
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
|
| 438 |
+
></polygon></svg
|
| 439 |
+
>
|
| 440 |
+
<span class="inline-flex items-center"
|
| 441 |
+
><span class="text-gray-500">meta-llama</span><span class="mx-1 text-black">/</span
|
| 442 |
+
><span class="text-black">Meta-Llama-3-70B-Instruct</span></span
|
| 443 |
+
>
|
| 444 |
+
</div>
|
| 445 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 446 |
+
<svg
|
| 447 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 448 |
+
width="24"
|
| 449 |
+
height="24"
|
| 450 |
+
viewBox="0 0 24 24"
|
| 451 |
+
fill="none"
|
| 452 |
+
stroke="currentColor"
|
| 453 |
+
stroke-width="2"
|
| 454 |
+
stroke-linecap="round"
|
| 455 |
+
stroke-linejoin="round"
|
| 456 |
+
class="lucide lucide-star mr-2 h-4 w-4 text-yellow-400"
|
| 457 |
+
><polygon
|
| 458 |
+
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
|
| 459 |
+
></polygon></svg
|
| 460 |
+
>
|
| 461 |
+
<span class="inline-flex items-center"
|
| 462 |
+
><span class="text-gray-500">mistralai</span><span class="mx-1 text-black">/</span
|
| 463 |
+
><span class="text-black">Mixtral-8x7B-Instruct-v0.1</span></span
|
| 464 |
+
>
|
| 465 |
+
</div>
|
| 466 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 467 |
+
<svg
|
| 468 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 469 |
+
width="24"
|
| 470 |
+
height="24"
|
| 471 |
+
viewBox="0 0 24 24"
|
| 472 |
+
fill="none"
|
| 473 |
+
stroke="currentColor"
|
| 474 |
+
stroke-width="2"
|
| 475 |
+
stroke-linecap="round"
|
| 476 |
+
stroke-linejoin="round"
|
| 477 |
+
class="lucide lucide-star mr-2 h-4 w-4 text-yellow-400"
|
| 478 |
+
><polygon
|
| 479 |
+
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
|
| 480 |
+
></polygon></svg
|
| 481 |
+
>
|
| 482 |
+
<span class="inline-flex items-center"
|
| 483 |
+
><span class="text-gray-500">google</span><span class="mx-1 text-black">/</span
|
| 484 |
+
><span class="text-black">gemma-1.1-7b-it</span></span
|
| 485 |
+
>
|
| 486 |
+
</div>
|
| 487 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 488 |
+
<svg
|
| 489 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 490 |
+
width="24"
|
| 491 |
+
height="24"
|
| 492 |
+
viewBox="0 0 24 24"
|
| 493 |
+
fill="none"
|
| 494 |
+
stroke="currentColor"
|
| 495 |
+
stroke-width="2"
|
| 496 |
+
stroke-linecap="round"
|
| 497 |
+
stroke-linejoin="round"
|
| 498 |
+
class="lucide lucide-star mr-2 h-4 w-4 text-yellow-400"
|
| 499 |
+
><polygon
|
| 500 |
+
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
|
| 501 |
+
></polygon></svg
|
| 502 |
+
>
|
| 503 |
+
<span class="inline-flex items-center"
|
| 504 |
+
><span class="text-gray-500">01-ai</span><span class="mx-1 text-black">/</span><span
|
| 505 |
+
class="text-black">Yi-1.5-34B-Chat</span
|
| 506 |
+
></span
|
| 507 |
+
>
|
| 508 |
+
</div>
|
| 509 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 510 |
+
<svg
|
| 511 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 512 |
+
width="24"
|
| 513 |
+
height="24"
|
| 514 |
+
viewBox="0 0 24 24"
|
| 515 |
+
fill="none"
|
| 516 |
+
stroke="currentColor"
|
| 517 |
+
stroke-width="2"
|
| 518 |
+
stroke-linecap="round"
|
| 519 |
+
stroke-linejoin="round"
|
| 520 |
+
class="lucide lucide-star mr-2 h-4 w-4 text-yellow-400"
|
| 521 |
+
><polygon
|
| 522 |
+
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
|
| 523 |
+
></polygon></svg
|
| 524 |
+
>
|
| 525 |
+
<span class="inline-flex items-center"
|
| 526 |
+
><span class="text-gray-500">microsoft</span><span class="mx-1 text-black">/</span
|
| 527 |
+
><span class="text-black">Phi-3-mini-4k-instruct</span></span
|
| 528 |
+
>
|
| 529 |
+
</div>
|
| 530 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 531 |
+
<svg
|
| 532 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 533 |
+
width="24"
|
| 534 |
+
height="24"
|
| 535 |
+
viewBox="0 0 24 24"
|
| 536 |
+
fill="none"
|
| 537 |
+
stroke="currentColor"
|
| 538 |
+
stroke-width="2"
|
| 539 |
+
stroke-linecap="round"
|
| 540 |
+
stroke-linejoin="round"
|
| 541 |
+
class="lucide lucide-star mr-2 h-4 w-4 text-yellow-400"
|
| 542 |
+
><polygon
|
| 543 |
+
points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
|
| 544 |
+
></polygon></svg
|
| 545 |
+
>
|
| 546 |
+
<span class="inline-flex items-center"
|
| 547 |
+
><span class="text-gray-500">TinyLlama</span><span class="mx-1 text-black">/</span
|
| 548 |
+
><span class="text-black">TinyLlama-1.1B-Chat-v1.0</span></span
|
| 549 |
+
>
|
| 550 |
+
</div>
|
| 551 |
+
</div>
|
| 552 |
+
</div>
|
| 553 |
+
<div class="mx-1 h-px bg-gray-200"></div>
|
| 554 |
+
<div class="p-1">
|
| 555 |
+
<div class="px-2 py-1.5 text-xs font-medium text-gray-500">Other Models</div>
|
| 556 |
+
<div>
|
| 557 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 558 |
+
<span class="inline-flex items-center"
|
| 559 |
+
><span class="text-gray-500">codellama</span><span class="mx-1 text-black">/</span
|
| 560 |
+
><span class="text-black">CodeLlama-34b-Instruct-hf</span></span
|
| 561 |
+
>
|
| 562 |
+
</div>
|
| 563 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 564 |
+
<span class="inline-flex items-center"
|
| 565 |
+
><span class="text-gray-500">google</span><span class="mx-1 text-black">/</span
|
| 566 |
+
><span class="text-black">gemma-1.1-2b-it</span></span
|
| 567 |
+
>
|
| 568 |
+
</div>
|
| 569 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 570 |
+
<span class="inline-flex items-center"
|
| 571 |
+
><span class="text-gray-500">google</span><span class="mx-1 text-black">/</span
|
| 572 |
+
><span class="text-black">gemma-2b-it</span></span
|
| 573 |
+
>
|
| 574 |
+
</div>
|
| 575 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 576 |
+
<span class="inline-flex items-center"
|
| 577 |
+
><span class="text-gray-500">HuggingFaceH4</span><span class="mx-1 text-black"
|
| 578 |
+
>/</span
|
| 579 |
+
><span class="text-black">zephyr-7b-alpha</span></span
|
| 580 |
+
>
|
| 581 |
+
</div>
|
| 582 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 583 |
+
<span class="inline-flex items-center"
|
| 584 |
+
><span class="text-gray-500">HuggingFaceH4</span><span class="mx-1 text-black"
|
| 585 |
+
>/</span
|
| 586 |
+
><span class="text-black">zephyr-7b-beta</span></span
|
| 587 |
+
>
|
| 588 |
+
</div>
|
| 589 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 590 |
+
<span class="inline-flex items-center"
|
| 591 |
+
><span class="text-gray-500">HuggingFaceH4</span><span class="mx-1 text-black"
|
| 592 |
+
>/</span
|
| 593 |
+
><span class="text-black">zephyr-orpo-141b-A35b-v0.1</span></span
|
| 594 |
+
>
|
| 595 |
+
</div>
|
| 596 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 597 |
+
<span class="inline-flex items-center"
|
| 598 |
+
><span class="text-gray-500">HuggingFaceTB</span><span class="mx-1 text-black"
|
| 599 |
+
>/</span
|
| 600 |
+
><span class="text-black">SmolLM-1.7B-Instruct</span></span
|
| 601 |
+
>
|
| 602 |
+
</div>
|
| 603 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 604 |
+
<span class="inline-flex items-center"
|
| 605 |
+
><span class="text-gray-500">meta-llama</span><span class="mx-1 text-black">/</span
|
| 606 |
+
><span class="text-black">Llama-2-13b-chat-hf</span></span
|
| 607 |
+
>
|
| 608 |
+
</div>
|
| 609 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 610 |
+
<span class="inline-flex items-center"
|
| 611 |
+
><span class="text-gray-500">meta-llama</span><span class="mx-1 text-black">/</span
|
| 612 |
+
><span class="text-black">Llama-2-70b-chat-hf</span></span
|
| 613 |
+
>
|
| 614 |
+
</div>
|
| 615 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 616 |
+
<span class="inline-flex items-center"
|
| 617 |
+
><span class="text-gray-500">meta-llama</span><span class="mx-1 text-black">/</span
|
| 618 |
+
><span class="text-black">Llama-2-7b-chat-hf</span></span
|
| 619 |
+
>
|
| 620 |
+
</div>
|
| 621 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 622 |
+
<span class="inline-flex items-center"
|
| 623 |
+
><span class="text-gray-500">meta-llama</span><span class="mx-1 text-black">/</span
|
| 624 |
+
><span class="text-black">Meta-Llama-3-8B-Instruct</span></span
|
| 625 |
+
>
|
| 626 |
+
</div>
|
| 627 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 628 |
+
<span class="inline-flex items-center"
|
| 629 |
+
><span class="text-gray-500">microsoft</span><span class="mx-1 text-black">/</span
|
| 630 |
+
><span class="text-black">DialoGPT-large</span></span
|
| 631 |
+
>
|
| 632 |
+
</div>
|
| 633 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 634 |
+
<span class="inline-flex items-center"
|
| 635 |
+
><span class="text-gray-500">mistralai</span><span class="mx-1 text-black">/</span
|
| 636 |
+
><span class="text-black">Mistral-7B-Instruct-v0.1</span></span
|
| 637 |
+
>
|
| 638 |
+
</div>
|
| 639 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 640 |
+
<span class="inline-flex items-center"
|
| 641 |
+
><span class="text-gray-500">mistralai</span><span class="mx-1 text-black">/</span
|
| 642 |
+
><span class="text-black">Mistral-7B-Instruct-v0.2</span></span
|
| 643 |
+
>
|
| 644 |
+
</div>
|
| 645 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 646 |
+
<span class="inline-flex items-center"
|
| 647 |
+
><span class="text-gray-500">mistralai</span><span class="mx-1 text-black">/</span
|
| 648 |
+
><span class="text-black">Mistral-7B-Instruct-v0.3</span></span
|
| 649 |
+
>
|
| 650 |
+
</div>
|
| 651 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 652 |
+
<span class="inline-flex items-center"
|
| 653 |
+
><span class="text-gray-500">NousResearch</span><span class="mx-1 text-black"
|
| 654 |
+
>/</span
|
| 655 |
+
><span class="text-black">Nous-Hermes-2-Mixtral-8x7B-DPO</span></span
|
| 656 |
+
>
|
| 657 |
+
</div>
|
| 658 |
+
<div class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100">
|
| 659 |
+
<span class="inline-flex items-center"
|
| 660 |
+
><span class="text-gray-500">Qwen</span><span class="mx-1 text-black">/</span><span
|
| 661 |
+
class="text-black">Qwen2-0.5B-Instruct</span
|
| 662 |
+
></span
|
| 663 |
+
>
|
| 664 |
+
</div>
|
| 665 |
+
</div>
|
| 666 |
+
</div>
|
| 667 |
+
</div>
|
| 668 |
+
</div>
|
| 669 |
+
</div>
|
| 670 |
+
</div>
|
src/lib/components/InferencePlayground/InferencePlaygroundGenerationConfig.svelte
CHANGED
|
@@ -13,7 +13,7 @@
|
|
| 13 |
$: maxTokens = Math.min(modelMaxLength ?? GENERATION_CONFIG_SETTINGS['max_tokens'].max, 64_000);
|
| 14 |
</script>
|
| 15 |
|
| 16 |
-
<div class="flex flex-col gap-y-
|
| 17 |
{#each GENERATION_CONFIG_KEYS as key}
|
| 18 |
{@const { label, min, step } = GENERATION_CONFIG_SETTINGS[key]}
|
| 19 |
{@const max = key === 'max_tokens' ? maxTokens : GENERATION_CONFIG_SETTINGS[key].max}
|
|
|
|
| 13 |
$: maxTokens = Math.min(modelMaxLength ?? GENERATION_CONFIG_SETTINGS['max_tokens'].max, 64_000);
|
| 14 |
</script>
|
| 15 |
|
| 16 |
+
<div class="flex flex-col gap-y-7 {classNames}">
|
| 17 |
{#each GENERATION_CONFIG_KEYS as key}
|
| 18 |
{@const { label, min, step } = GENERATION_CONFIG_SETTINGS[key]}
|
| 19 |
{@const max = key === 'max_tokens' ? maxTokens : GENERATION_CONFIG_SETTINGS[key].max}
|
src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte
CHANGED
|
@@ -8,19 +8,36 @@
|
|
| 8 |
const dispatch = createEventDispatcher<{ modelIdxChange: number }>();
|
| 9 |
</script>
|
| 10 |
|
| 11 |
-
<div>
|
| 12 |
<label
|
| 13 |
for="countries"
|
| 14 |
-
class="
|
| 15 |
>Models<span class="ml-4 font-normal text-gray-400">{compatibleModels.length}</span>
|
| 16 |
</label>
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
class="
|
| 20 |
-
on:change={(e) => dispatch('modelIdxChange', e.currentTarget.selectedIndex)}
|
| 21 |
>
|
| 22 |
-
|
| 23 |
-
<
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
</div>
|
|
|
|
| 8 |
const dispatch = createEventDispatcher<{ modelIdxChange: number }>();
|
| 9 |
</script>
|
| 10 |
|
| 11 |
+
<div class="flex flex-col gap-2">
|
| 12 |
<label
|
| 13 |
for="countries"
|
| 14 |
+
class="flex items-baseline text-sm font-medium text-gray-900 dark:text-white"
|
| 15 |
>Models<span class="ml-4 font-normal text-gray-400">{compatibleModels.length}</span>
|
| 16 |
</label>
|
| 17 |
+
|
| 18 |
+
<button
|
| 19 |
+
class="flex items-center gap-6 overflow-hidden whitespace-nowrap rounded-lg border bg-gray-100/80 px-3 py-1.5 leading-tight shadow dark:bg-gray-700"
|
|
|
|
| 20 |
>
|
| 21 |
+
<div class="flex flex-col items-start">
|
| 22 |
+
<div class="flex items-center gap-1 text-sm text-gray-500 dark:text-gray-300">
|
| 23 |
+
<img
|
| 24 |
+
class="size-3 flex-none rounded bg-gray-200 object-cover"
|
| 25 |
+
src="https://cdn-avatars.huggingface.co/v1/production/uploads/646cf8084eefb026fb8fd8bc/oCTqufkdTkjyGodsx1vo1.png"
|
| 26 |
+
alt=""
|
| 27 |
+
/>
|
| 28 |
+
meta-llama
|
| 29 |
+
</div>
|
| 30 |
+
<div>Meta-Llama-3-70B-Instruct</div>
|
| 31 |
+
</div>
|
| 32 |
+
<div class="rounded bg-gray-100">
|
| 33 |
+
<svg
|
| 34 |
+
class="text-xl"
|
| 35 |
+
xmlns="http://www.w3.org/2000/svg"
|
| 36 |
+
width="1em"
|
| 37 |
+
height="1em"
|
| 38 |
+
viewBox="0 0 24 24"
|
| 39 |
+
><path fill="currentColor" d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z" /></svg
|
| 40 |
+
>
|
| 41 |
+
</div>
|
| 42 |
+
</button>
|
| 43 |
</div>
|