huggingface/new-model-addition-cwm
https://skillcdn.ai/gh/huggingface/new-model-addition-cwmConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
5baf598 - License
Apache-2.0 - Searchwords
This repository is larger than the indexing limits, so some files are missing from the index.
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
Folders
Documents
- _config.pydocs/source/en/_config.py
- _redirects.ymldocs/source/en/_redirects.yml
- _toctree.ymldocs/source/en/_toctree.yml
- AccelerateAccelerate is a library designed to simplify distributed training on any type of setup with PyTorch by uniting the most common frameworks (Fully Sharded Data Parallel (FSDP) and DeepSpeed) for it int…docs/source/en/accelerate.md
- Accelerator selectionDuring distributed training, you can specify the number and order of accelerators (CUDA, XPU, MPS, HPU, etc.) to use. This can be useful when you have accelerators with different computing power and…docs/source/en/accelerator_selection.md
- Legacy model contributionMany of the models in Transformers are contributed by developers and researchers. As an open-source first project, we're invested in empowering the community to actively and independently add more mo…docs/source/en/add_new_model.md
- Adding a new pipelineMake [Pipeline] your own by subclassing it and implementing a few methods. Share the code with the community on the Hub and register the pipeline with Transformers so that everyone can quickly and ea…docs/source/en/add_new_pipeline.md
- Agents(deprecated)docs/source/en/agents.md
- Attention InterfaceThis page describes how to use the AttentionInterface in order to register custom attention functions to use with supported models.docs/source/en/attention_interface.md
- Documenting a modelThe @auto_docstring decorator in Transformers generates consistent docstrings for model classes and their methods. It reduces boilerplate by automatically including standard argument descriptions whi…docs/source/en/auto_docstring.md
- BackbonesHigher-level computer visions tasks, such as object detection or image segmentation, use several models together to generate a prediction. A separate model is used for the backbone, neck, and head. T…docs/source/en/backbones.md
- CachingImagine you're having a conversation with someone, and instead of remembering what they previously said, they have to start from scratch every time you respond. This would be slow and inefficient, ri…docs/source/en/cache_explanation.md
- Tool useChat models are commonly trained with support for "function-calling" or "tool-use". Tools are functions supplied by the user, which the model can choose to call as part of its response. For example,…docs/source/en/chat_extras.md
- Chat templatesThe chat basics guide covers how to store chat histories and generate text from chat models using [TextGenerationPipeline].docs/source/en/chat_templating.md
- Multimodal chat templatesMultimodal chat models accept inputs like images, audio or video, in addition to text. The content key in a multimodal chat history is a list containing multiple items of different types. This is unl…docs/source/en/chat_templating_multimodal.md
- Writing a chat templateA chat template is a Jinja template stored in the tokenizer's chat_template attribute. Jinja is a templating language that allows you to write Python-like code and syntax.docs/source/en/chat_templating_writing.md
- CommunityThis page regroups resources around 🤗 Transformers developed by the community.docs/source/en/community.md
- Chat basicsChat models are conversational models you can send a message to and receive a response. Most language models from mid-2023 onwards are chat models and may be referred to as "instruct" or "instruction…docs/source/en/conversations.md
- Using Cursor as a client of transformers serveThis example shows how to use transformers serve as a local LLM provider for Cursor, the popular IDE. In this particular case, requests to transformers serve will come from an external IP (Cursor's s…docs/source/en/cursor.md
- Customizing modelsTransformers models are designed to be customizable. A models code is fully contained in the model subfolder of the Transformers repository. Each folder contains a modeling.py and a configuration.py…docs/source/en/custom_models.md
- Multi-GPU debuggingDistributed training can be tricky because you have to ensure you're using the correct CUDA version across your system. You may encounter inter-communication issues between GPUs, and there may be und…docs/source/en/debugging.md
- DeepSpeedDeepSpeed is designed to optimize distributed training for large models with data, model, pipeline, and even a combination of all three parallelism strategies to provide better memory efficiency and…docs/source/en/deepspeed.md
- ExecuTorchExecuTorch is a platform that enables PyTorch training and inference programs to be run on mobile and edge devices. It is powered by torch.compile and torch.export for performance and deployment.docs/source/en/executorch.md
- TokenizersTokenizers convert text into an array of numbers known as tensors, the inputs to a text model. There are several tokenizer algorithms, but they all share the same purpose. Split text into smaller wor…docs/source/en/fast_tokenizers.md
- Feature extractorsFeature extractors preprocess audio data into the correct format for a given model. It takes the raw audio signal and converts it into a tensor that can be fed to a model. The tensor shape depends on…docs/source/en/feature_extractors.md
- FullyShardedDataParallelFully Sharded Data Parallel (FSDP) is a parallelism method that combines the advantages of data and model parallelism for distributed training.docs/source/en/fsdp.md
- Generation featuresThe [~GenerationMixin.generate] API supports a couple features for building applications on top of it.docs/source/en/generation_features.md
- Generation strategiesA decoding strategy informs how a model should select the next generated token. There are many types of decoding strategies, and choosing the appropriate one has a significant impact on the quality o…docs/source/en/generation_strategies.md
- GGUFGGUF is a file format used to store models for inference with GGML, a fast and lightweight inference framework written in C and C++. GGUF is a single-file format containing the model metadata and ten…docs/source/en/gguf.md
- GlossaryThis glossary defines general machine learning and 🤗 Transformers terms to help you better understand the documentation.docs/source/en/glossary.md
- Customizing model componentsAnother way to customize a model is to modify their components, rather than writing a new model entirely, allowing you to tailor a model to your specific use case. For example, you can add new layers…docs/source/en/how_to_hack_models.md
- Hyperparameter searchHyperparameter search discovers an optimal set of hyperparameters that produces the best model performance. [Trainer] supports several hyperparameter search backends - Optuna, SigOpt, Weights & Biase…docs/source/en/hpo_train.md
- Image processorsImage processors converts images into pixel values, tensors that represent image colors and size. The pixel values are inputs to a vision model. To ensure a pretrained model receives the correct inpu…docs/source/en/image_processors.md
- TransformersTransformers acts as the model-definition framework for state-of-the-art machine learning models in text, computer vision, audio, video, and multimodal model, for both inference and training.docs/source/en/index.md
- InstallationTransformers works with PyTorch. It has been tested on Python 3.9+ and PyTorch 2.2+.docs/source/en/installation.md
- Jan: using the serving API as a local LLM providerThis example shows how to use transformers serve as a local LLM provider for the Jan app. Jan is a ChatGPT-alternative graphical interface, fully running on your machine. The requests to transformers…docs/source/en/jan.md
- KV cache strategiesThe key-value (KV) vectors are used to calculate attention scores. For autoregressive models, KV scores are calculated every time because the model predicts one token at a time. Each prediction depen…docs/source/en/kv_cache.md
- Optimizing inferenceInference with large language models (LLMs) can be challenging because they have to store and handle billions of parameters. To load a 70B parameter Llama 2 model, it requires 256GB of memory for ful…docs/source/en/llm_optims.md
- Text generation[[open-in-colab]]docs/source/en/llm_tutorial.md
- Optimizing LLMs for Speed and Memory[[open-in-colab]]docs/source/en/llm_tutorial_optimization.md
- Model training anatomyTo understand performance optimization techniques that one can apply to improve efficiency of model training speed and memory utilization, it's helpful to get familiar with how GPU is utilized during…docs/source/en/model_memory_anatomy.md
- SharingThe Hugging Face Hub is a platform for sharing, discovering, and consuming models of all different types and sizes. We highly recommend sharing your model on the Hub to push open-source machine learn…docs/source/en/model_sharing.md
- Loading modelsTransformers provides many pretrained models that are ready to use with a single line of code. It requires a model class and the [~PreTrainedModel.from_pretrained] method.docs/source/en/models.md
- Contributing a new model to TransformersModular Transformers lowers the bar for contributing models and significantly reduces the code required to add a model by allowing imports and inheritance.docs/source/en/modular_transformers.md
Skipped (50)
These manifests were not served. Fix them and push: the next commit is indexed again.
docs/source/ar/attention.mdlink_missing2 links name no file of the repository (model_doc/reformer, model_doc/longformer)docs/source/ar/autoclass_tutorial.mdlink_missing2 links name no file of the repository (model_doc/layoutlmv2, model_doc/auto)docs/source/ar/community.mdlink_missinga link names no file of the repository (glossary)docs/source/ar/conversations.mdlink_missing2 links name no file of the repository (./quantization, ./llm_optims)docs/source/ar/create_a_model.mdlink_missing7 links name no file of the repository (model_doc/auto, main_classes/configuration, model_doc/distilbert, ...)docs/source/ar/custom_models.mdlink_missinga link names no file of the repository (model_sharing)docs/source/ar/fast_tokenizers.mdlink_missinga link names no file of the repository (main_classes/tokenizer)docs/source/ar/glossary.mdlink_missing7 links name no file of the repository (model_doc/dpt, perf_train_gpu_many#dataparallel-vs-distributeddataparallel, perf_train_gpu_many#from-naive-model-parallelism-to-pipeline-parallelism, ...)docs/source/ar/index.mdreference_limitMarkdown reference extraction exceeded its input or reference limit; some links were not inspecteddocs/source/ar/index.mdlink_missing200 links name no file of the repository (model_doc/albert, model_doc/align, model_doc/altclip, ...)docs/source/ar/llm_tutorial.mdlink_missing9 links name no file of the repository (tasks/language_modeling, pipeline_tutorial, main_classes/quantization, ...)docs/source/ar/llm_tutorial_optimization.mdlink_missinga link names no file of the repository (/main_classes/quantization)docs/source/ar/llm_tutorial_optimization.mdimage_missing2 images name no file of the repository (/blog/assets/163_optimize_llm/self_attn_tokens.png, /blog/assets/163_optimize_llm/alibi.png)docs/source/ar/model_memory_anatomy.mdlink_missinga link names no file of the repository (perf_train_gpu_one)docs/source/ar/model_sharing.mdlink_missing2 links name no file of the repository (installation, training)docs/source/ar/model_summary.mdlink_missing34 links name no file of the repository (model_doc/convnext, model_doc/vit, model_doc/swin, ...)docs/source/ar/modular_transformers.mdlink_missinga link names no file of the repository (./philosophy)docs/source/ar/peft.mdlink_missing2 links name no file of the repository (./quantization#bitsandbytes-integration, training)docs/source/ar/perplexity.mdlink_missing2 links name no file of the repository (model_summary, model_doc/gpt2)docs/source/ar/philosophy.mdlink_missing6 links name no file of the repository (main_classes/configuration, main_classes/model, main_classes/tokenizer, ...)docs/source/ar/pipeline_tutorial.mdlink_missing3 links name no file of the repository (training, ./pipeline_webserver, ./main_classes/pipelines#pipeline-chunk-batching)docs/source/ar/pipeline_webserver.mdlink_missing2 links name no file of the repository (pipeline_tutorial#using-pipelines-on-a-dataset, ./main_classes/pipelines#pipeline-batching)docs/source/ar/preprocessing.mdlink_missing15 links name no file of the repository (./main_classes/tokenizer, ./main_classes/feature_extractor, ./main_classes/image_processor, ...)docs/source/ar/quicktour.mdlink_missing11 links name no file of the repository (./model_doc/auto, ./main_classes/pipelines, ./training, ...)docs/source/ar/run_scripts.mdlink_missinga link names no file of the repository (./notebooks)docs/source/ar/serialization.mdlink_missinga link names no file of the repository (tflite)docs/source/ar/task_summary.mdlink_missing2 links name no file of the repository (glossary#convolution, glossary#token)docs/source/ar/tasks/language_modeling.mdlink_missing2 links name no file of the repository (../training#train-with-pytorch-trainer, ../generation_strategies)docs/source/ar/tasks/masked_language_modeling.mdlink_missinga link names no file of the repository (../training#train-with-pytorch-trainer)docs/source/ar/tasks/multiple_choice.mdlink_missinga link names no file of the repository (../training#train-with-pytorch-trainer)docs/source/ar/tasks/question_answering.mdlink_missinga link names no file of the repository (../training#train-with-pytorch-trainer)docs/source/ar/tasks/sequence_classification.mdlink_missinga link names no file of the repository (../training#train-with-pytorch-trainer)docs/source/ar/tasks/summarization.mdlink_missing2 links name no file of the repository (../training#train-with-pytorch-trainer, ../main_classes/text_generation)docs/source/ar/tasks/translation.mdlink_missing2 links name no file of the repository (../training#train-with-pytorch-trainer, ../main_classes/text_generation)docs/source/ar/tasks_explained.mdlink_missing30 links name no file of the repository (task_summary, model_doc/wav2vec2, model_doc/vit, ...)docs/source/ar/tokenizer_summary.mdlink_missing15 links name no file of the repository (preprocessing, model_doc/transfo-xl, model_doc/gpt2, ...)docs/source/ar/torchscript.mdlink_missinga link names no file of the repository (torchscript#using-torchscript-in-python)docs/source/ar/trainer.mdlink_missing4 links name no file of the repository (./main_classes/trainer, callbacks, ./main_classes/logging, ...)docs/source/ar/training.mdlink_missinga link names no file of the repository (notebooks)docs/source/ar/troubleshooting.mdlink_missing5 links name no file of the repository (migration, installation#offline-mode, main_classes/trainer#transformers.TrainingArguments.per_device_train_batch_size, ...)docs/source/de/add_new_model.mdlink_missing5 links name no file of the repository (Philosophie, pr_checks#check-copies, model_summary, ...)docs/source/de/autoclass_tutorial.mdlink_missing2 links name no file of the repository (model_doc/layoutlmv2, model_doc/auto)docs/source/de/contributing.mdlink_missinga link names no file of the repository (src/transformers/testing_utils.py)docs/source/de/index.mdlink_missing141 links name no file of the repository (model_doc/albert, model_doc/align, model_doc/bart, ...)docs/source/de/llm_tutorial.mdlink_missing6 links name no file of the repository (tasks/language_modeling, pipeline_tutorial, main_classes/quantization, ...)docs/source/de/model_sharing.mdlink_missing2 links name no file of the repository (installation, training)docs/source/de/peft.mdlink_missing2 links name no file of the repository (./quantization#bitsandbytes-integration, Training)docs/source/de/preprocessing.mdlink_missing7 links name no file of the repository (main_classes/tokenizer, glossary#input-ids, glossary#attention-mask, ...)docs/source/de/quicktour.mdlink_missing10 links name no file of the repository (./model_doc/auto, ./main_classes/pipelines, ./training, ...)docs/source/de/run_scripts.mdlink_missinga link names no file of the repository (./notebooks)