MCPcopy Create free account

hub / github.com/allenai/molmo / types & classes

Types & classes198 in github.com/allenai/molmo

↓ 19 callersClassEvaluatorConfig
Config for `Evaluator` objects that compute metrics
olmo/config.py:1042
↓ 13 callersClassBeamSearch
Implements the beam search algorithm for decoding the most likely sequences. :param end_index: The index of the "stop" or "end" token in the
olmo/beam_search.py:649
↓ 12 callersClassOLMoConfigurationError
An error with a configuration file.
olmo/exceptions.py:17
↓ 8 callersClassMockDataset
tests/data/test_data_iterator.py:27
↓ 8 callersClassModelConfig
OLMo (model) configuration.
olmo/config.py:336
↓ 7 callersClassIterableDatasetMixture
Infinitely iterates over a mixture of datasets
olmo/data/iterable_dataset_mixture.py:15
↓ 7 callersClassRepeatedNGramBlockingConstraint
olmo/beam_search.py:593
↓ 7 callersClassTokenizerConfig
olmo/config.py:312
↓ 7 callersClassVisionBackboneConfig
olmo/config.py:273
↓ 6 callersClassMolmo
olmo/model.py:1587
↓ 5 callersClassDataConfig
Configuration for a dataset to train or evaluate on
olmo/config.py:1077
↓ 4 callersClassAndroidControlBuilder
olmo/hf_datasets/android_control.py:156
↓ 4 callersClassBoxesToVisualize
Boxes to draw on an image
olmo/html_utils.py:241
↓ 4 callersClassCosWithWarmup
olmo/optim.py:593
↓ 4 callersClassDropout
olmo/model.py:165
↓ 4 callersClassFSDPConfig
olmo/config.py:1279
↓ 4 callersClassLengthNormalizedSequenceLogProbabilityScorer
A :class:`FinalSequenceScorer` which scores the sequences by the average log probability of the tokens in the sequence. It optionally include
olmo/beam_search.py:462
↓ 4 callersClassOLMoEnvironmentError
An error from incorrect environment variables.
olmo/exceptions.py:29
↓ 4 callersClassOLMoNetworkError
An error with a network request.
olmo/exceptions.py:35
↓ 4 callersClassPixMoDocs
olmo/data/pixmo_datasets.py:113
↓ 4 callersClassPixMoPoints
olmo/data/pixmo_datasets.py:155
↓ 4 callersClassSTKey
olmo/safetensors_util.py:18
↓ 4 callersClassTopPSampler
A `Sampler` which redistributes the probability mass function for nodes among the top choices with a cumulative probability of at least `p`,
olmo/beam_search.py:205
↓ 4 callersClassViTMultiHeadDotProductAttention
MDPA for the image ViT
olmo/image_vit.py:33
↓ 3 callersClassAi2dDatasetBuilder
AI2D dataset builder, this builder adds the labelled boxes as needed to the AI2D images using both transparent and opaque boxes
olmo/hf_datasets/ai2d.py:92
↓ 3 callersClassClockBenchBuilder
olmo/hf_datasets/clock_bench.py:34
↓ 3 callersClassCountQaBuilder
CountQa dataset from PaliGemi, it is built by merging the CountBench image/count pairs with the natural language questions from the PaliGemma pape
olmo/hf_datasets/count_qa.py:15
↓ 3 callersClassDatasetEvaluatorConfig
Configuration for a datset and metrics to use to evaluate a model
olmo/config.py:1140
↓ 3 callersClassDeterministicDataset
Dataset wrapper that supports padding and control the random seed based on the epoch
olmo/data/dataset.py:36
↓ 3 callersClassDvQaBuilder
olmo/hf_datasets/dv_qa.py:9
↓ 3 callersClassFigureQaBuilder
olmo/hf_datasets/figure_qa.py:9
↓ 3 callersClassFullCheckpointer
A :class:`Checkpointer` that saves a single full model and optimizer state dictionary.
olmo/checkpoint.py:616
↓ 3 callersClassImageProjectorMLP
MLP used for the image projector
olmo/model.py:1302
↓ 3 callersClassLinearWithWarmup
olmo/optim.py:612
↓ 3 callersClassLocalShardedCheckpointer
A sharded :class:`Checkpointer` that directly saves the local FSDP flat params data. The optimizer state is saved directly with `torch.save()
olmo/checkpoint.py:1474
↓ 3 callersClassModelEvaluator
Evaluates a model on possibly multiple tasks
scripts/mm_eval.py:70
↓ 3 callersClassOptimizerConfig
olmo/config.py:917
↓ 3 callersClassPixMoCap
olmo/data/pixmo_datasets.py:322
↓ 3 callersClassPlotQaBuilder
olmo/hf_datasets/plot_qa.py:9
↓ 3 callersClassRemoteFileSystemReader
A :class:`~torch.distributed.checkpoint.StorageReader` based on :class:`~torch.distributed.checkpoint.FileSystemReader` that can read data di
olmo/checkpoint.py:411
↓ 3 callersClassTabMwpBuilder
olmo/hf_datasets/tabmwp.py:9
↓ 3 callersClassTopKSampler
A `Sampler` which redistributes the probability mass function for nodes among the top `k` choices, then samples from that subset after re-nor
olmo/beam_search.py:148
↓ 3 callersClassTrainConfig
OLMo training configuration.
olmo/config.py:1366
↓ 2 callersClassAOkVqa
olmo/data/academic_datasets.py:134
↓ 2 callersClassAOkVqaBuilder
olmo/hf_datasets/a_okvqa.py:59
↓ 2 callersClassAndroidControl
olmo/data/academic_datasets.py:614
↓ 2 callersClassBlockCollection
olmo/image_vit.py:186
↓ 2 callersClassChartQa
ChartQA dataset from HuggingFace M4 project. This class loads the ChartQA dataset from HuggingFace (https://huggingface.co/datasets/HuggingFa
olmo/data/academic_datasets.py:34
↓ 2 callersClassClockEval
olmo/eval/evaluators.py:805
↓ 2 callersClassDataFormatter
Applies prompt templates and adds system prompts to construct text inputs/output
olmo/data/data_formatter.py:298
↓ 2 callersClassDownloadError
olmo/data/download_urls.py:42
↓ 2 callersClassEvalConfig
olmo/config.py:1831
↓ 2 callersClassGELU
olmo/model.py:472
↓ 2 callersClassGumbelSampler
A `Sampler` which uses the Gumbel-Top-K trick to sample without replacement. See [*Stochastic Beams and Where to Find Them: The Gumbel-Top-k
olmo/beam_search.py:291
↓ 2 callersClassHtmlTable
Returned as special metric for visualizing predictions
olmo/eval/evaluators.py:50
↓ 2 callersClassImageError
olmo/data/download_urls.py:48
↓ 2 callersClassInfDatasetEvaluator
Evaluates a model on a dataset
olmo/eval/inf_evaluator.py:110
↓ 2 callersClassLayerNorm
The default :class:`LayerNorm` implementation which can optionally run in low precision.
olmo/model.py:271
↓ 2 callersClassMMCollator
Converts list of examples from our datasets into a tensor batch
olmo/data/collator.py:43
↓ 2 callersClassMMMU
olmo/data/academic_datasets.py:769
↓ 2 callersClassMultiModalPreprocessor
Converts text/images inputs into tensors that can be used in the forward method for the a model
olmo/data/model_preprocessor.py:276
↓ 2 callersClassOLMoCheckpointError
An error occurred reading or writing from a checkpoint.
olmo/exceptions.py:41
↓ 2 callersClassOLMoCliError
An error from incorrect CLI usage.
olmo/exceptions.py:23
↓ 2 callersClassOlmoCoreCheckpointer
olmo/checkpoint.py:1909
↓ 2 callersClassPixMoCount
olmo/data/pixmo_datasets.py:73
↓ 2 callersClassPreprocessor
olmo/data/model_preprocessor.py:815
↓ 2 callersClassSchedulerConfig
olmo/config.py:1003
↓ 2 callersClassSpeedMonitorConfig
olmo/config.py:1203
↓ 2 callersClassTallyQaBuilder
olmo/hf_datasets/tally_qa.py:8
↓ 2 callersClassTorchLegacyShardedCheckpointer
A sharded :class:`Checkpointer` that just uses `torch.save()` with extra logic for handling FSDP model and optim state. The world size m
olmo/checkpoint.py:969
↓ 2 callersClassVQAv2BuilderMultiQA
olmo/hf_datasets/vqa_v2.py:80
↓ 2 callersClassViTMLP
olmo/image_vit.py:148
↓ 2 callersClassVqa2
olmo/data/academic_datasets.py:90
↓ 2 callersClassWandbConfig
olmo/config.py:1191
↓ 2 callersClass_FlatParamShard
olmo/checkpoint.py:1462
↓ 1 callersClassAI2D
olmo/data/academic_datasets.py:306
↓ 1 callersClassAdamW
olmo/optim.py:544
↓ 1 callersClassAndroidControlEval
olmo/eval/evaluators.py:374
↓ 1 callersClassBatchStatsMonitor
olmo/train.py:72
↓ 1 callersClassBufferCache
Cache for attention biases and other things that would normally be stored as buffers. We avoid using buffers because we've run into various i
olmo/model.py:119
↓ 1 callersClassClockBench
olmo/data/academic_datasets.py:816
↓ 1 callersClassConstantScheduler
olmo/optim.py:685
↓ 1 callersClassCountBenchQa
olmo/data/academic_datasets.py:515
↓ 1 callersClassCountEval
olmo/eval/evaluators.py:742
↓ 1 callersClassDeterministicSampler
A `Sampler` that just deterministically returns the `k` nodes or beams with highest log probability.
olmo/beam_search.py:102
↓ 1 callersClassDinoBlockCollection
olmo/image_vit.py:214
↓ 1 callersClassDinoResidualAttentionBlock
olmo/image_vit.py:274
↓ 1 callersClassDinoVisionTransformer
olmo/image_vit.py:474
↓ 1 callersClassDocQa
DocumentVQA dataset from HuggingFace M4 project. This class loads the DocumentVQA dataset from HuggingFace (https://huggingface.co/datasets/H
olmo/data/academic_datasets.py:436
↓ 1 callersClassDvQa
olmo/data/academic_datasets.py:675
↓ 1 callersClassElement
olmo/hf_datasets/android_control_utils.py:123
↓ 1 callersClassEmbedding
olmo/model.py:137
↓ 1 callersClassFigureQa
olmo/data/academic_datasets.py:570
↓ 1 callersClassHfTokenizerWrapper
Tokenizer wrapper This exists mostly for legacy reasons since we used to support other kinds of tokenizers with different API
olmo/tokenizer.py:27
↓ 1 callersClassInfEvaluator
Evaluates the text outputs from a model on a task
olmo/eval/inf_evaluator.py:31
↓ 1 callersClassInfoQa
olmo/data/academic_datasets.py:391
↓ 1 callersClassInvSqrtWithWarmup
olmo/optim.py:631
↓ 1 callersClassLRMonitor
olmo/train.py:148
↓ 1 callersClassLionW
Adapted from https://github.com/google/automl/blob/master/lion/lion_pytorch.py
olmo/optim.py:434
↓ 1 callersClassLlamaSwiGLU
olmo/model.py:490
next →1–100 of 198, ranked by callers