Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
aereeeee committed Sep 5, 2024
1 parent 635f5d7 commit 10901fd
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 1,914 deletions.
4 changes: 0 additions & 4 deletions src/components/InputForm.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<script lang="ts">
import Input from 'flowbite-svelte/Input.svelte';
import Select from 'flowbite-svelte/Select.svelte';
import Button from 'flowbite-svelte/Button.svelte';
import ButtonGroup from 'flowbite-svelte/ButtonGroup.svelte';
import Dropdown from 'flowbite-svelte/Dropdown.svelte';
import DropdownItem from 'flowbite-svelte/DropdownItem.svelte';
import Temperature from './Temperature.svelte';
import TokenGenerator from './TokenGenerator.svelte';
import { ex0, ex1, ex2, ex3, ex4 } from '~/constants/examples';
import { ArrowRightOutline, ChevronDownOutline } from 'flowbite-svelte-icons';
Expand Down
93 changes: 0 additions & 93 deletions src/components/TokenGenerator.svelte

This file was deleted.

5 changes: 1 addition & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
headContentHeight,
temperature,
modelData,
predictedColor,
modelSession,
isFetchingModel,
predictedToken
isFetchingModel
} from '~/store';
import Sankey from '~/components/Sankey.svelte';
import Attention from '~/components/Attention.svelte';
Expand All @@ -32,7 +30,6 @@
import WeightPopovers from '~/components/WeightPopovers.svelte';
import { fade } from 'svelte/transition';
import { AutoTokenizer } from '@xenova/transformers';
import { ChevronDoubleRightOutline } from 'flowbite-svelte-icons';
// run model
onMount(async () => {
Expand Down
13 changes: 0 additions & 13 deletions src/routes/weight/+page.svelte

This file was deleted.

6 changes: 0 additions & 6 deletions src/utils/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ export const getData = async (token_ids: number[]) => {
// Convert token_ids to tensor
const inputTensor = new ort.Tensor('int64', token_ids, [1, token_ids.length]);

// Load the model
// const session = await ort.InferenceSession.create(`${base}/model-quant.onnx`, {
// logSeverityLevel: 0, // Verbose logging
// externalData
// });

// Get the session from the store
const session = get(modelSession);
if (!session) {
Expand Down
Loading

0 comments on commit 10901fd

Please sign in to comment.