MCPcopy Create free account

hub / github.com/huggingface/smollm / functions

Functions1,907 in github.com/huggingface/smollm

↓ 1 callersFunctionget_image_urls
(dataset, num_proc, path_save_file_image_urls)
vision/m4/sourcing/data_collection/processors/web_document_extractor.py:95
↓ 1 callersMethodget_image_urls
(self)
vision/m4/sourcing/data_collection/processors/web_document_extractor.py:371
↓ 1 callersMethodget_images
(self, return_pil=False, return_path=False)
vision/smolvlm2/smolvlm/conversation.py:229
↓ 1 callersMethodget_index_order
(self)
vision/m4/training/dataset.py:559
↓ 1 callersMethodget_info_from_dataset
(self, dataset)
vision/m4/models/vgpt2/evaluation_perplexity_in_context_vgpt2.py:69
↓ 1 callersMethodget_input_embeddings
(self)
vision/m4/models/vmistral/modeling_vmistral.py:1068
↓ 1 callersMethodget_input_embeddings
(self)
vision/m4/models/idefics/modeling_idefics.py:1046
↓ 1 callersMethodget_input_embeddings
(self)
vision/m4/models/vllama3/modeling_vllama3.py:1161
↓ 1 callersFunctionget_key_subresponses
(response)
vision/m4/evaluation/custom_metrics/utils.py:472
↓ 1 callersFunctionget_logged_eval_values
If `evaluation_run` already exists, get the already logged values into a dictionary.
vision/m4/evaluation/scripts/sync_evaluations_on_wandb.py:98
↓ 1 callersFunctionget_model
(model_path)
vision/m4/evaluation/generation/deprecated_generation/generate.py:16
↓ 1 callersFunctionget_model_from_config_file
(args, is_deepspeed=False)
vision/m4/evaluation/utils.py:50
↓ 1 callersMethodget_model_tflops_per_batch_per_gpu
(self, hparams, data_param, tokenizer, max_num_images)
vision/m4/models/vgpt2/modeling_vgpt2.py:1288
↓ 1 callersFunctionget_model_tokenizer
(model_id, device)
vision/data/datasets_processing_scripts/build_webdocs_dataset/python_scripts/14_01_filter_perplexity_with_language_model.py:13
↓ 1 callersFunctionget_nb_trainable_parameters
Returns (trainable_params, total_params) across the entire model.
vision/smolvlm2/smolvlm/train/train.py:63
↓ 1 callersMethodget_output_embeddings
(self)
vision/m4/models/vmistral/modeling_vmistral.py:1403
↓ 1 callersMethodget_output_embeddings
(self)
vision/m4/models/vgpt2/modeling_vgpt2.py:1149
↓ 1 callersMethodget_output_embeddings
(self)
vision/m4/models/idefics/modeling_idefics.py:1052
↓ 1 callersMethodget_output_embeddings
(self)
vision/m4/models/vllama3/modeling_vllama3.py:1539
↓ 1 callersMethodget_paths_subdatasets
(self)
vision/m4/sourcing/data_collection/processors/web_document_line_deduplication.py:37
↓ 1 callersMethodget_perplexities
(self, **kwargs)
vision/m4/models/vgpt2/evaluation_perplexity_in_context_vgpt2.py:269
↓ 1 callersMethodget_prompt
(self)
vision/smolvlm2/smolvlm/conversation.py:47
↓ 1 callersMethodget_resume_state
(self)
vision/m4/training/dataset.py:1485
↓ 1 callersMethodget_resume_states
(self)
vision/m4/training/dataset.py:1382
↓ 1 callersFunctionget_scores
(dataset_name, save_filename, nb_pairs)
vision/m4/sourcing/data_collection/callers/get_reference_clip_distrib.py:11
↓ 1 callersMethodget_selected_text
(self)
tools/smol_tools/demo_tkinter.py:252
↓ 1 callersMethodget_statistics_on_extracted_pairs
(self)
vision/m4/sourcing/data_collection/visualization/pair_visualization.py:449
↓ 1 callersMethodget_texts
A list, each element is a list of potential captions
vision/m4/sourcing/pmd/loader_builder.py:124
↓ 1 callersFunctionget_wandb_logger
Init the wandb logger.
vision/m4/evaluation/scripts/sync_evaluations_on_wandb.py:215
↓ 1 callersMethodget_warc_from_metadata
(self, client, warc_filename, warc_record_offset, warc_record_length)
vision/m4/sourcing/data_collection/processors/warc_downloader.py:32
↓ 1 callersFunctionget_xdist_worker_id
when run under pytest-xdist returns the worker id (int), otherwise returns 0
vision/m4/testing_utils.py:839
↓ 1 callersFunctiongroup_by_keys_interleaved
Return function over iterator that groups key, value pairs into samples.
vision/m4/training/dataset_utils.py:94
↓ 1 callersMethodhamming_distance
(array_1, array_2)
vision/m4/sourcing/data_collection/processors/image_deduplicator.py:28
↓ 1 callersFunctionhas_consecutive_nones
(lst, max_num_nones=3)
vision/m4/training/packing.py:539
↓ 1 callersMethodhas_current_chat
Check if there are any messages in the current chat
tools/smol_tools/smol_tools/chatter.py:55
↓ 1 callersFunctionhf_trainer_disable_zero3_init_context_manager
()
vision/m4/training/utils.py:826
↓ 1 callersFunctionhttp_get
( url, temp_file, proxies=None, resume_size=0, headers=None, cookies=None, timeout=100, max_retries=0, des
vision/m4/sourcing/pmd/cache_path.py:132
↓ 1 callersFunctionhttp_head
( url, proxies=None, headers=None, cookies=None, allow_redirects=True, timeout=10, max_retries=0 )
vision/m4/sourcing/pmd/cache_path.py:112
↓ 1 callersFunctionimage_splitting
Image splitting strategy. 1) If one side of the original image is larger than `max_image_size`, resize it to `max_image_size` while preservin
vision/m4/training/utils.py:400
↓ 1 callersMethodimage_text_pair_recall
(self)
vision/m4/sourcing/data_collection/visualization/pair_stat_dashboard.py:305
↓ 1 callersMethodimages_quality_recall
(self)
vision/m4/sourcing/data_collection/visualization/pair_stat_dashboard.py:327
↓ 1 callersFunctioninit_dict
()
vision/data/datasets_processing_scripts/create_fine_tuning_datasets/create_raven.py:28
↓ 1 callersFunctioninit_new
(matrix, matrix_additional)
vision/experiments/pretraining/vloom/tr_343_smolvlm_05b_1st_stage/resize_embed_for_eou.py:41
↓ 1 callersFunctioninit_new
(matrix, matrix_additional)
vision/experiments/pretraining/vloom/tr_341_smolvlm_025b_1st_stage/resize_embed_for_eou.py:41
↓ 1 callersFunctioninit_new
(matrix, matrix_additional)
vision/experiments/pretraining/vloom/tr_348_smolvlm_2B/resize_embed_for_eou.py:41
↓ 1 callersFunctioninit_new
(matrix, matrix_additional)
vision/m4/scripts/resize_embed_for_eou.py:43
↓ 1 callersMethodinputs_merger
Merge text embeddings with image embeddings out-of-place (no in-place indexing). The shapes are something like: - inpu
vision/smolvlm2/smolvlm/model/modeling_smolvlm.py:17
↓ 1 callersMethodinputs_merger
Merge text embeddings with image embeddings out-of-place (no in-place indexing). The shapes are something like: - inpu
vision/smolvlm2/smolvlm/model/modeling_smollmm.py:21
↓ 1 callersMethodinputs_merger
This method aims at merging the token embeddings with the image hidden states into one single sequence of vectors that are fed to the transfo
vision/m4/models/vmistral/modeling_vmistral.py:1074
↓ 1 callersMethodinputs_merger
This method aims at merging the token embeddings with the image hidden states into one single sequence of vectors that are fed to the transfo
vision/m4/models/vllama3/modeling_vllama3.py:1167
↓ 1 callersMethodis_chat_modified
Check if the current chat has been modified since loading
tools/smol_tools/smol_tools/chatter.py:98
↓ 1 callersFunctionis_deepspeed_available
()
vision/m4/testing_utils.py:172
↓ 1 callersFunctionis_deepspeed_zero3_used
()
vision/m4/training/utils.py:768
↓ 1 callersMethodis_eval
(self)
vision/m4/utils/activation_tracker.py:180
↓ 1 callersFunctionis_mammoth
Return True if the dataset entry is from MammothVL. We assume the name starts with "mammoth:".
vision/smolvlm2/scripts/create_mixture.py:100
↓ 1 callersFunctionis_onevision
Return True if the dataset entry is from OneVision. We assume the name starts with "onevision:".
vision/smolvlm2/scripts/create_mixture.py:93
↓ 1 callersFunctionis_torch_bf16_available
()
vision/m4/testing_utils.py:253
↓ 1 callersMethodis_train
(self)
vision/m4/utils/activation_tracker.py:183
↓ 1 callersFunctionis_url_valid
(url)
vision/m4/sourcing/data_collection/utils/simplification_utils.py:158
↓ 1 callersMethodis_video_file
(self, filename)
vision/smolvlm2/smolvlm/conversation.py:248
↓ 1 callersFunctionlen2weight
Returns the sub-sample weight given the sub-sequence length.
vision/smolvlm2/smolvlm/datasets/builder.py:27
↓ 1 callersMethodline_deduplicate_web_documents
(self)
vision/m4/sourcing/data_collection/processors/web_document_line_deduplication.py:102
↓ 1 callersFunctionlist_of_dicts_to_single_dict
(list_of_dicts)
vision/m4/evaluation/scripts/mmmu_submission_format.py:10
↓ 1 callersFunctionload_annotations
(path_to_generation_data)
vision/m4/evaluation/scripts/mmbench_submission_format.py:30
↓ 1 callersMethodload_chat
Load a specific chat from disk
tools/smol_tools/smol_tools/chatter.py:85
↓ 1 callersFunctionload_database
()
vision/m4/sourcing/processing/app.py:37
↓ 1 callersMethodload_dataset
(self)
vision/m4/sourcing/data_collection/visualization/web_document_and_filtering_visualization.py:55
↓ 1 callersFunctionload_datasets_and_generations
(dataset_name, path_to_test_eval_data, id_column_name=None)
vision/m4/evaluation/scripts/mmbench_submission_format.py:63
↓ 1 callersFunctionload_datasets_and_generations
(dataset_idx, id_column_name=None)
vision/m4/evaluation/scripts/visualize_generations.py:134
↓ 1 callersFunctionload_hf_dataset
(dataset_path)
vision/data/datasets_processing_scripts/build_concatenation_datasets_sft/viz_tool.py:50
↓ 1 callersMethodload_ideas_websites
(self)
vision/data/datasets_processing_scripts/build_websight_v02/python_scripts/02_01_generate_html_codes_prompt_1.py:76
↓ 1 callersMethodload_ideas_websites
(self)
vision/data/datasets_processing_scripts/build_websight_v02/python_scripts/02_02_generate_html_codes_prompt_2.py:74
↓ 1 callersFunctionload_image_directory_as_frames
Treats a directory of images as if they were consecutive frames in a pseudo-video recorded at `source_fps`, then samples frames to achieve
vision/smolvlm2/smolvlm/datasets/dataset.py:152
↓ 1 callersFunctionload_image_directory_as_frames
Treats a directory of images as if they were consecutive frames in a pseudo-video recorded at `source_fps`, then samples frames to achieve
vision/smolvlm2/smolvlm/datasets/dataset_clip_sampling.py:279
↓ 1 callersMethodload_images_evaluation_tasks_dataset
(self)
vision/m4/sourcing/data_collection/processors/web_document_image_deduplication.py:279
↓ 1 callersMethodload_images_web_document_dataset_train
(self)
vision/m4/sourcing/data_collection/processors/web_document_image_deduplication.py:270
↓ 1 callersMethodload_media_iterator
(self)
vision/m4/sourcing/pmd/helpers.py:243
↓ 1 callersFunctionload_model
(checkpoint_path: str, base_model_id: str = "HuggingFaceTB/SmolVLM-Instruct", device: str = "cuda")
tools/smolvlm_local_inference/SmolVLM_video_inference.py:69
↓ 1 callersMethodload_model_and_tokenizer
(self)
vision/data/datasets_processing_scripts/build_websight_v02/python_scripts/02_01_generate_html_codes_prompt_1.py:80
↓ 1 callersMethodload_model_and_tokenizer
(self)
vision/data/datasets_processing_scripts/build_websight_v02/python_scripts/02_02_generate_html_codes_prompt_2.py:82
↓ 1 callersFunctionload_modelling_metadata_dataset
(dataset_path: str, shard_name: str, cache_path: str = None)
vision/data/datasets_processing_scripts/clean_m4_prelimenary_experiments/python_scripts/get_modelling_metadata_dataset.py:97
↓ 1 callersFunctionload_modelling_metadata_dataset
(dataset_path: str, shard_name: str, cache_path: str = None)
vision/m4/sourcing/get_modelling_metadata_dataset/get_modelling_metadata_dataset.py:97
↓ 1 callersFunctionload_processed_shard
(dir_path: Path, shard_idx: int)
vision/data/datasets_processing_scripts/clean_m4_prelimenary_experiments/python_scripts/02_add_html_back.py:27
↓ 1 callersFunctionload_processed_shard
(dir_path: Path, shard_idx: int)
vision/data/datasets_processing_scripts/clean_m4_prelimenary_experiments/python_scripts/05_filter_cm4.py:27
↓ 1 callersFunctionload_query_and_support_datasets
(task, args)
vision/m4/evaluation/evaluators/in_contexter.py:45
↓ 1 callersFunctionload_rendered_text_into_s3
(start_idx, end_idx)
vision/data/datasets_processing_scripts/upload_rendered_text_dataset/upload_tar_to_s3.py:14
↓ 1 callersMethodload_selected_chat
(self, listbox: tk.Listbox, chat_display: tk.Text)
tools/smol_tools/demo_tkinter.py:591
↓ 1 callersFunctionload_single_image
(img_path: str)
vision/smolvlm2/smolvlm/datasets/dataset.py:250
↓ 1 callersFunctionload_single_image
(img_path: str)
vision/smolvlm2/smolvlm/datasets/dataset_clip_sampling.py:382
↓ 1 callersMethodload_state_dict
(self, state_dict)
vision/m4/training/dataset.py:1399
↓ 1 callersFunctionload_state_dict_into_model
(model_to_load, state_dict, start_prefix)
vision/m4/training/utils.py:882
↓ 1 callersFunctionload_tokenizer
(tokenizer_name)
vision/m4/sourcing/processing/app.py:20
↓ 1 callersFunctionload_tokenizer_model
(opt_step_dir)
vision/m4/evaluation/generation/generate.py:23
↓ 1 callersFunctionload_video
Loads a video from `path` using decord, sampling up to `max_frames` frames. After deduplicating indices (e.g., to handle rounding collisions)
vision/smolvlm2/smolvlm/datasets/dataset.py:63
↓ 1 callersFunctionload_video
Loads a video from `path` using decord, sampling up to `max_frames` frames. After deduplicating indices (e.g., to handle rounding collisions)
vision/smolvlm2/smolvlm/datasets/dataset_clip_sampling.py:218
↓ 1 callersFunctionload_vision_encoder
(args)
vision/m4/evaluation/evaluators/in_contexter.py:35
↓ 1 callersFunctionload_yaml
(file_path)
vision/smolvlm2/scripts/create_mixture.py:111
↓ 1 callersFunctionloading_existing_images
()
vision/m4/sourcing/data_collection/utils/fetching_utils.py:16
↓ 1 callersFunctionlog_generation
( wandb_config, wandb_name, wandb_project, wandb_entity, all_texts, image_paths, model_names, image_size=2
vision/m4/evaluation/generation/deprecated_generation/log_generation.py:32
↓ 1 callersFunctionlora_replace_module
(parent, child_name, new_module, child)
vision/m4/training/utils.py:990
← previousnext →701–800 of 1,907, ranked by callers