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

window.ai.finetune #160

Open
hemanth opened this issue Jul 10, 2024 · 0 comments
Open

window.ai.finetune #160

hemanth opened this issue Jul 10, 2024 · 0 comments

Comments

@hemanth
Copy link

hemanth commented Jul 10, 2024

window.ai.finetune enables web applications to fine-tune nano/ any local AI models directly in the browser. This API allows developers to customize AI models based on specific datasets or raw text, enhancing the capabilities of client-side AI applications.

Use Cases:

  • Personalized language models for improved autocomplete or text generation
  • Custom classifiers for specific domains or user preferences
  • Tailored sentiment analysis models for particular contexts or industries

API: window.ai.finetune(options: FineTuneOptions)

Initiates the fine-tuning process for a model based on the provided options.

  • options.model: Specifies the base model to fine-tune. defaults to "nano".
  • options.dataset: An optional structured dataset for fine-tuning.
  • options.rawText: An optional string of raw text for fine-tuning.
  • options.epochs: An optional number of training epochs (default may vary by implementation).
  • options.learningRate: An optional learning rate for the fine-tuning process.

Returns a Promise that resolves to a FineTuneResult object containing the ID of the fine-tuned model and performance metrics.

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

No branches or pull requests

1 participant