Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Translate JS to TS #1197

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

sroussey
Copy link
Contributor

No description provided.

- `configs.ts`: Adds configuration handling for model loading and normalization
- `env.ts`: Provides global environment configuration for the library
- `utils/constants.ts`: Defines constant values used across the library
- `utils/core.ts`: Implements core utility functions and types
- `utils/data-structures.ts`: Introduces custom data structures like PriorityQueue
- `utils/devices.ts`: Defines supported device types
- `utils/hub.ts`: Adds utility functions for interacting with the Hugging Face Hub
- `utils/maths.ts`: Provides mathematical processing utilities
- `utils/tensor.ts`: Implements tensor manipulation and creation functions
- Introduces `dtypes.ts` with data type constants and mappings
- audio.ts
- generic.ts
- ops/registry.ts
- generation/stopping_criteria.ts
@kungfooman
Copy link
Contributor

image

Did it ever cross your mind that you just make beautiful JS unreadable with no gains and forcing everyone to install endless amounts of node_modules for... a PITA? Please learn modern JS, ESM and importmaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants