huggingface_tools 0.1.1 copy "huggingface_tools: ^0.1.1" to clipboard
huggingface_tools: ^0.1.1 copied to clipboard

Tools to search and download models from HuggingFace.

example/example.dart

import 'dart:convert';

import 'package:huggingface_tools/huggingface_tools.dart';

Future<void> main() async {
  final response = await searchModels(search: 'text generation', limit: 5);
  print(json.encode(response.toJson()));

  final modelInfo = await getModelInfo('mistralai/Mistral-7B-Instruct-v0.1');
  await downloadFile(modelInfo.modelFiles.first, targetFilePath: './model.bin');
}
0
likes
150
points
42
downloads

Publisher

verified publisheragilord.com

Weekly Downloads

Tools to search and download models from HuggingFace.

Repository (GitHub)
View/report issues

Topics

#cli #llm #huggingface #tool #setup

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

args, http, json_annotation, path

More

Packages that depend on huggingface_tools