LM Studio provides ArtifactDownloadPlanner instances to manage complex download requirements. Instead of a simple download, a planner allows you to monitor progress, handle dependencies, and resolve specific versions or quantization types.
Artifact Download Planner
Use createArtifactDownloadPlanner to manage the download of a specific artifact (e.g., a plugin or tool) belonging to an owner and name.
Model Download Planner
Use createModelDownloadPlanner to manage model downloads from a specific source (e.g., Hugging Face).
Resolution Preferences
You can provide resolutionPreference to guide the planner toward specific files or quantization names:
fileName: Resolve by a specific filename.quantName: Resolve by a specific quantization name.
Important: Download planners should be used with the using keyword (if using TypeScript's explicit resource management) or manually disposed of to prevent memory leaks, as they register with a FinalizationRegistry to warn about un-disposed planners.