Deep Learning
PreviewHugging Face language, vision, speech and image models, fine-tuning, and Keras networks
111 nodes in 18 categories
- Ships with
- Divooka Compute
- Support tier
- Tier 3 (proposed)
- Package
- Machine Learning
Machine Learning
Hugging Face models from the Hub: chat and text generation, embeddings, summarizing and translating, image and speech recognition, Stable Diffusion, LoRA fine-tuning, Keras networks and ONNX - plus YOLO object detection.
Fine Tune Settings
Make Fine Tune SettingsSettings for a LoRA or QLoRA fine-tune.AlphaHow strongly the adapter applies.Batch SizeExamples per batch.DeviceWhere it trains.DropoutThe adapter's dropout.EpochsPasses over the data.Four BitWhether the base model is held in 4-bit (QLoRA).Gradient AccumulationBatches per step.Learning RateThe learning rate.Max LengthThe longest example, in tokens.Max StepsThe step limit; 0 for none.RankThe adapter's rank.SeedThe seed.To StringOne line, as a preview shows it.
Generation Settings
Make Generation SettingsSettings for generating text.Max New TokensThe most tokens a reply may have.Repetition PenaltyHow much repeating is discouraged.SampleWhether words are sampled rather than always the likeliest.SeedThe seed sampling starts from.Stop AtTexts that end the reply.TemperatureHow adventurous sampling is.Top KHow many of the likeliest words sampling chooses among.Top PThe share of probability sampling chooses within.To StringOne line, as a preview shows it.
Text Tasks
Answer QuestionAnswers a question with the passage of a text that answers it.Classify TextThe labels that best describe a text, best first.Classify Text Zero-ShotScores a text against labels written in words, best first.Fill MaskThe likeliest words for the mask token in a text, best first, with the text each makes.Load Entity RecognizerLoads a named-entity recognizer from a Hub repository or a folder.Load Mask FillerLoads a masked language model from a Hub repository or a folder.Load Question AnswererLoads an extractive question-answering model from a Hub repository or a folder.Load Text ClassifierLoads a text classifier from a Hub repository or a folder.Load Zero-Shot Text ClassifierLoads a zero-shot text classifier (a model trained on natural-language inference) from a Hub repository or a folder.Recognize EntitiesThe names a text mentions and what each is - PER, LOC, ORG, MISC for most English models - in the order they appear.
Keras Layers
AddAdds several branches of the same shape, element by element, as a residual connection does.Batch NormalizationRescales its inputs to a steady mean and spread, batch by batch, which makes deeper networks train faster.ConcatenateJoins several branches side by side, along their last axis.Conv2DA 2D convolution: small filters slid over a picture-shaped input (height, width, channels), each finding one kind of pattern.DenseA fully connected layer: every output is a weighted sum of every input, then the activation.DropoutDrops a share of its inputs at random while training, against overfitting; does nothing when predicting.FlattenLays a shaped input out as one row of numbers, as a Dense layer after convolutions needs.InputWhere data enters the network: one example's shape, without the batch.Layer NormalizationRescales each example's features to a steady mean and spread.Max Pooling 2DHalves a picture-shaped input's width and height (by default), keeping the strongest value of each patch.
Language Models
AskAsks a chat model one question and answers with its reply: a one-message conversation, rendered through the model's chat template.ChatSays a message in a conversation and answers with the model's reply, and the conversation with both added, to continue from.Continue ConversationThe model's next reply to a conversation that ends with the user's message.Count TokensHow many tokens a text is to a model, which is what its length limits and Generation Settings count.Generate TextContinues a text as the model would write it, without a chat template: the model's continuation alone, not the prompt.Load Language ModelLoads a language model and its tokenizer from a Hugging Face Hub repository or a folder, downloading what is missing.Load ONNX Language ModelLoads a language model to run on the ONNX backend: the repository's own ONNX file when it has one, such as one Export Language Model to ONNX wrote, otherwise a graph built from its checkpoint.Stream ChatChat, with the reply handed to a function piece by piece as it is written - whole words, line by line - so it can be shown before it is finished.
Vision Language Models
Ask About ImageAsks a question about a picture.Ask About ImagesAsks a question about several pictures at once, shown in order before the question.Chat About ImageSays a message in a conversation, showing a picture with it, and answers with the model's reply and the conversation with both added, to continue from.Describe ImageAsks the model to describe a picture: "Describe this image."Load Vision Language ModelLoads a vision language model and its processor from a Hugging Face Hub repository or a folder, downloading what is missing.Make Image ArrayUp to eight pictures as one array, for Ask About Images; unconnected inputs are left out.Stream Chat About ImageChat About Image, with the reply handed to a function piece by piece as it is written, so it can be shown before it is finished.
Image Generation
Add ControlNetAdds a ControlNet to steer a picture: Generate Image, Transform Image or Inpaint Image follows its conditioning picture.Finish With RefinerFinishes an SDXL picture with SDXL's refiner: the base model paints the first part of the steps and hands its unfinished picture over, and the refiner paints the rest.Generate ImagePaints a picture from a description, optionally following ControlNets and finished by SDXL's refiner.Inpaint ImageRepaints the part of a picture a mask marks to match a description, and keeps the rest: inpainting, optionally following ControlNets and finished by SDXL's refiner.Load ControlNetLoads a ControlNet, which makes a picture follow a conditioning picture such as an edge map, a depth map or a pose.Load Image GeneratorLoads a Stable Diffusion or SDXL pipeline from a Hub repository or a folder in diffusers' layout, with LoRAs when given.Transform ImageRepaints a picture to match a description, keeping its composition: img2img, optionally following ControlNets and finished by SDXL's refiner.
Keras Models
Build Keras ModelMakes a model of the layers between an input and an output.Load Keras ModelLoads a model saved in Keras's .keras format, by this package or by Python's Keras.Predict OneThe model's answer for one example.Predict With Keras ModelThe model's answers for the rows of a table, as a table with one column per output.Save Keras ModelSaves a model in Keras's .keras format: its layers, weights and training setup in one file.Train Keras ModelTrains a model on the rows of a table: some columns are what it sees, others what it should answer.
Hugging Face Hub
Cache FolderThe folder downloaded models are kept in.Downloaded ModelsThe model repositories in the cache, with how much disk each takes.Download FileDownloads one file of a repository into the cache and answers with its path.Download ModelDownloads a whole repository, or the files of it that match some patterns, into the cache, and answers with its folder.Is DownloadedWhether a repository has anything in the cache.
Embeddings
Cosine SimilarityHow alike two embeddings are: 1 for the same direction, 0 for unrelated, -1 for opposite.EmbedA text's embedding.Embed TextsSeveral texts' embeddings.Load Embedding ModelLoads an embedding model and its tokenizer from a Hub repository or a folder.Rank By SimilarityOrders texts by how close in meaning each is to a query, closest first: semantic search over a short list.
Speech Models
Load Speech RecognizerLoads a speech recognizer, its feature extractor and its tokenizer from a Hub repository or a folder.TranscribeWhat is said in a clip, as text.Transcribe FileWhat is said in a WAV file, as text.Transcribe With TimesWhat is said in a clip, in the segments the recognizer heard, with when each starts and ends.Transcribe WordsWhat is said in a clip, word by word, with when each word starts and ends: for subtitles that follow the voice, or to find where a word was said.
Transcription Settings
Deep Learning Runtime
Describe RuntimeWhich libtorch this distribution carries and what it can see, in one line.Is GPU AvailableWhether models can run on an NVIDIA GPU here: the machine has one and a driver, and the distribution carries the CUDA build of libtorch.Loaded ModelsThe models this program holds in memory now, one line each.Unload All ModelsFrees every model this program has loaded.Unload ModelFrees the memory a model holds.
Text-to-Text Models
Load Text-to-Text ModelLoads a text-to-text model and its tokenizer from a Hub repository or a folder.SummarizeA shorter text saying what a longer one says.Transform TextThe model's answer to a text as it is, with no task prefix: what instruction-tuned models such as Flan-T5 are asked with.TranslateTranslates a text from one language to another, asked as T5 is asked: "translate English to German: ".
Vision Models
Classify ImageThe labels that best describe a picture, best first, from those the classifier knows.Classify Image Zero-ShotScores a picture against labels written in words, best first; the scores add up to 1 across the labels given.Load Image ClassifierLoads an image classifier and its image processor from a Hub repository or a folder.Load Zero-Shot Image ClassifierLoads a zero-shot image classifier (an image and a text model trained together) from a Hub repository or a folder.