huggingface_tools 0.1.1
huggingface_tools: ^0.1.1 copied to clipboard
Tools to search and download models from HuggingFace.
HuggingFace Tools #
Dart CLI and library for searching and downloading HuggingFace models.
CLI #
Search models:
dart run huggingface_tools search --query "llama" --limit 5
Download files:
dart run huggingface_tools download --model-id microsoft/DialoGPT-medium --filename pytorch_model.bin
Library #
import 'package:huggingface_tools/huggingface_tools.dart';
final response = await searchModels(search: 'text generation', limit: 5);
final modelInfo = await getModelInfo('mistralai/Mistral-7B-Instruct-v0.1');
await downloadFile(modelInfo.modelFiles.first, targetFilePath: './model.bin');