mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-03 03:31:05 +06:00
Fix license text, duplicate assignment, and typo in constant names (#39250)
- Complete Apache License text in Italian documentation - Remove duplicate variable assignment in Perceiver converter - Fix typo in MODEL_FOR_VISION_2_SEQ_MAPPING_NAMES constant
This commit is contained in:
parent
b2816da802
commit
ea3c2c0277
@ -7,6 +7,7 @@ http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
|
||||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations under the License.
|
||||
|
||||
⚠️ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
|
||||
rendered properly in your Markdown viewer.
|
||||
|
@ -148,7 +148,7 @@ def rename_keys(state_dict, architecture):
|
||||
)
|
||||
name = name.replace("classification_decoder/~/basic_decoder/output/b", "decoder.decoder.final_layer.bias")
|
||||
name = name.replace("classification_decoder/~/basic_decoder/output/w", "decoder.decoder.final_layer.weight")
|
||||
name = name = name.replace("classification_decoder/~/basic_decoder/~/", "decoder.decoder.")
|
||||
name = name.replace("classification_decoder/~/basic_decoder/~/", "decoder.decoder.")
|
||||
name = name.replace("basic_decoder/cross_attention/", "decoder.decoding_cross_attention.")
|
||||
name = name.replace("basic_decoder/~/", "decoder.")
|
||||
|
||||
|
@ -109,7 +109,7 @@ PIPELINE_TAGS_AND_AUTO_MODELS = [
|
||||
"MODEL_FOR_VISUAL_QUESTION_ANSWERING_MAPPING_NAMES",
|
||||
"AutoModelForVisualQuestionAnswering",
|
||||
),
|
||||
("image-to-text", "MODEL_FOR_FOR_VISION_2_SEQ_MAPPING_NAMES", "AutoModelForVision2Seq"),
|
||||
("image-to-text", "MODEL_FOR_VISION_2_SEQ_MAPPING_NAMES", "AutoModelForVision2Seq"),
|
||||
(
|
||||
"zero-shot-image-classification",
|
||||
"MODEL_FOR_ZERO_SHOT_IMAGE_CLASSIFICATION_MAPPING_NAMES",
|
||||
|
Loading…
Reference in New Issue
Block a user