GithubHelp home page GithubHelp logo

alibaba / alicemind Goto Github PK

View Code? Open in Web Editor NEW
1.9K 1.9K 294.0 26.49 MB

ALIbaba's Collection of Encoder-decoders from MinD (Machine IntelligeNce of Damo) Lab

License: Apache License 2.0

Python 97.90% Shell 1.14% Makefile 0.01% Batchfile 0.01% C++ 0.21% Cuda 0.38% Lua 0.04% Cython 0.09% Jupyter Notebook 0.22%
bert deep-learning natural-language-processing nlp

alicemind's People

Contributors

albert-ma avatar alibaba-oss avatar chuanqi1992 avatar grygg avatar lcl6679292 avatar njustgzy avatar runxinxu avatar suluyana avatar wangwei7175878 avatar xhyandwyy avatar zhongyigu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alicemind's Issues

ASOC 2022: Downstream tasks code implementation of StructBERT

Background

This is an advance subject of ASoC 2022 and #44 .

Supplementing the implementation of common downstream tasks such as regression/multi-label classification/sequence labeling/machine reading comprehension of StructBERT.

Target

Design and implement regression/multi-label classification/sequence labeling/machine reading comprehension code of StructBERT.

Difficulty

Normal

Mentor

Wei Wang (@wangwei7175878 )([email protected])

背景

这是一个阿里巴巴编程之夏 2022 的基础课题 #44
补充StructBERT在回归/多标签分类/序列标注/机器阅读理解等常见下游任务的代码实现。

目标

补充StructBERT在回归/多标签分类/序列标注/机器阅读理解等常见下游任务的代码实现。

难度

正常

导师

Wei Wang(@wangwei7175878 )([email protected])

StructuralLM, 如何定义cell box

StructuralLM, 如何定义cell box
对于ocr 通过给出的是一整行信息,或者说key:value 靠的很近,请问这算一个cell吗?还是算两个?

What’s the CLEVER?

I found StructBERT + CLEVER in the GLUE benchmark. Is that a technology about the pertaining or fine-tuning? Can you provide more information about CLEVER? Thanks a lot.

image

TNEWS结果

您好,感谢您的工作,有一点小问题,文章中汇报的TNEWS结果为什么跟CLUE原文中汇报的差距这么大,CLUE原文汇报的测试接上的Accuracy大概在56-58之间,而在本文中普遍在67-68之间

DocVQA reproduce problem using StructuralLM

I tried to finetune StructuralLM on DocVQA dataset using the released weights, but I only get 76.85 ANLS on the test set.
Can the finetuning code on DocVQA be open-sourced ?

code for E2E-VLP

Hi, I'm wondering if the code for E2E-VLP would be published?

fail to load structbert.en.large while trying to reproduce the result of GLUE

Hi,
I downloaded the structbert.en.large through the given link (https://alice-open.oss-cn-zhangjiakou.aliyuncs.com/StructBERT/en_model), but the below error occured during running.

RuntimeError: Error(s) in loading state_dict for BertForSequenceClassificationMultiTask:
Missing key(s) in state_dict: "classifier.0.weight", "classifier.0.bias".
Unexpected key(s) in state_dict: "lm_bias", "linear.weight", "linear.bias", "LayerNorm.gamma", "LayerNorm.beta", "classifier.weight", "classifier.bias".

Do you have any idea why this happen? Thank you very much.

NaN loss during training

跑LatticeBERT里面fine-tuning a AFQMC classification model的样例,参数也没动,标注数据集,迭代几次就loss NaN?

transfer labert model to pytorch

Hi,
I'm trying to transfer the labert model to pytorch, I used the code online :

path="./chinese_labert-base-std-512/"
tf_checkpoint_path = path + "model.ckpt/"#自己BERT模型文件夹下的ckpt文件(共3个一组)
bert_config_file = path + "labert_config.json" #自己BERT模型文件夹下的config
pytorch_dump_path = path + "pytorch_model.bin" 

def convert_tf_checkpoint_to_pytorch(tf_checkpoint_path, bert_config_file, pytorch_dump_path):
    # Initialise PyTorch model
    config = BertConfig.from_json_file(bert_config_file)
    print(f"Building PyTorch model from configuration: {config}")
    model = BertForPreTraining(config)

    # Load weights from tf checkpoint
    load_tf_weights_in_bert(model, config, tf_checkpoint_path)

    # Save pytorch-model
    print(f"Save PyTorch model to {pytorch_dump_path}")
    torch.save(model.state_dict(), pytorch_dump_path)

convert_tf_checkpoint_to_pytorch(tf_checkpoint_path, bert_config_file, pytorch_dump_path)

But I got this:

1633691584(1)

Does anyone know if there's a way to make it work?Thanks a lot!!

请教下XNLI的复现结果?

hello~ 我这边使用train_xnli.sh的默认参数进行了训练,最终得到平均acc为78.63%,和论文中的79.9%的结果有些出入,且看上去应该是每种语言的acc都低了一点。请问下可能是什么原因导致的呢?非常感谢。
我这边是用的单核GPU,采用Tesla M40 24GB卡,Driver Version: 440.64,CUDA Version: 10.2
我从和论文中的fine-tune参数对比上看。
一个是sh代码里面使用的epoch=2,论文中是用的3/5/10选的
另一个是这里TOTAL_BATCH_SIZE=64,BATCH_SIZE=2,论文中是16/32/64选的
会不会是这两个超参导致的出入呢?
非常感谢~

通义模型

Hi,你们在clue上提交的通义模型对应的是PLUG吗?

Hyper parameters for ChildTuning

Thanks a lot for all the details you provide in Appendix B for reproducibility! However, I still encounter some difficulties in reproducing the experiment.
I noticed that you apply grid search. Could you please provide the specific , and learning rate for each task?

will you consider push your work to huggingface model hub?

It's a bit suffering to use your model like StructBert.

There are some minor code modifications compared with huggingface's bert.

So i won't say it's safe to directly use huggingface's from_pretrained api on your released model checkpoint, while it could be inconvenient to use your modeling code where the BertModel are not inherited with huggingface's PreTrainedModel.

Any advice?

请问什么时候可以开放跨模态模型

想使用跨模态模型做文生图的工作,目前的文生图工作尚不能适应下游任务。(比如装置艺术、环境设计等)
我有相关的专业数据集。

Alibaba Summer of Code (ASOC) 2022

Alibaba Summer of Code (ASOC) 2022

Welcome to the open source world! If you haven't planned how to spend this summer, come to the Alibaba Summer of Code and code with us! 💻

Alibaba Summer of Code is a global program focused on engaging students directly in open source software development. Under the guidance of the mentor in the Alibaba open source project, students can experience software development in the real world. Alibaba Summer of code will begin from May 30th to September 1st. Students can use the summertime to participate in the open source project and work with the core members of the project.

This is a master issue to track the progress and result of Alibaba Summer of Code 2022.

What you can get?

On this exclusive developer journey, students will have the opportunity to:

  • Participate in the top projects of the International Open Source Foundation;
  • Get a scholarship from Alibaba;
  • Obtain an open source contributor certificate;
  • Get a fast pass of Alibaba Internship
  • Get your code adopted and used by the open source project!

Our Mentor

Wei Wang (@wangwei7175878 ), ASoC Mentor, Core member of AliceMind
Chuanqi Tan (@Chuanqi1992 ), ASoC Mentor, Core member of AliceMind
Chenliang Li (@lcl6679292 ), ASoC Mentor, Core member of AliceMind

Timeline

开源

Apply Now!

Browse open idea list here:

阿里巴巴开源之夏: StructBERT下游任务代码实现:
Difficulty: Normal
#41
阿里巴巴开源之夏:基于PALM实现图片生成模型
Difficulty: Normal
#43
阿里巴巴开源之夏:基于AliceMind模型的稀疏算法实现
Difficulty: Hard
#42
Upload your CV and project proposal via ASOC 2022 official website

Contact the Organizer

If you have any questions, visit the event website: https://opensource.alibaba.com/asoc2022

Email address: [email protected]

ASOC 2022: Sparse metric and pattern implementation of SOFA

Background

This is an advance subject of ASoC 2022 and #44 .
At present, SOFA cannot support the sparse algorithm. It is necessary to refer to the previous work to implement common sparse metrics (e.g. MaP and MvP) and sparse patterns (e.g. unstructured pruning, block-wise pruning).

Target

The implementation of common sparse metrics (e.g. MaP and MvP) and sparse patterns (e.g. unstructured pruning, block-wise pruning).

Difficulty

Hard

Mentor

Chuanqi Tan (@Chuanqi1992 )([email protected])

背景

这是一个阿里巴巴编程之夏 2022 的基础课题 #44
AliceMind-SOFA框架不支持稀疏算法,需要参考先有工作实现MaP、MvP、L0等稀疏Metric和随机稀疏、block稀疏等稀疏Pattern。

目标

实现MaP、MvP、L0等稀疏Metric和随机稀疏、block稀疏等稀疏Pattern。

难度

导师

Chuanqi Tan (@Chuanqi1992 )([email protected])

Coreference Resolution Task

For CLUEWSC2020 data, how did you manage the inputs? As was demonstrated in the Lattice-BERT paper, the coreference resolution task was also treated as a classification task in which the representation corresponding to [CLS] was used as the feature vector. I just wonder how you distinguished the different spans in the input.

Will you share pre-training code of StructBERT

Hi, I'm trying to code StructBERT from scratch. But I couldn't find any code examples pre-training about StructBERT.
In the repository I've found codes for fine-tuning based on various datasets.

Are you planning to share pre-training model's code for StructBert such as BertForPretraining in Transformers library ?

Thanks in advance 🙂

about fine-tune using sdcup

may i use a bert-like model to load params of pre-train sdcup, then add some head top for task of table qa?

when i look into pre-train sdcup, can i ignore params like: "mlp_action1.linear.weight", "mlp_action1.linear.bias", "mlp_action2.linear.weight", "mlp_action2.linear.bias", "mlp_column1.linear.weight", "mlp_column1.linear.bias", "mlp_column2.linear.weight", "mlp_column2.linear.bias", "mlp_column1_single.linear.weight", "mlp_column1_single.linear.bias", "mlp_column2_single.linear.weight", "mlp_column2_single.linear.bias", "layer_norm_1.gamma", "layer_norm_1.beta", "layer_norm_2.gamma", "layer_norm_2.beta", "layer_norm_3.gamma", "layer_norm_3.beta". are these useful for fine-tune?

How to reproduce the result of StructBert on SST-B?

Hi, I can not reproduce the result reported in the paper by the code example:

python run_classifier_multi_task.py \
  --task_name STS-B \
  --do_train \
  --do_eval \
  --do_test \
  --lr_decay_factor 1 \
  --dropout 0.1 \
  --do_lower_case \
  --detach_index -1 \
  --core_encoder bert \
  --data_dir data \
  --vocab_file config/vocab.txt \
  --bert_config_file config/large_bert_config.json \
  --init_checkpoint model/en_model \
  --max_seq_length 128 \
  --train_batch_size 32 \
  --learning_rate 2e-5 \
  --num_train_epochs 3 \
  --fast_train \
  --gradient_accumulation_steps 1 \
  --output_dir output \
  --amp_type O1

Are there any hyper-params I set wrong?

ASOC 2022: Downstream image generation code implementation of PALM

Background

This is an advance subject of ASoC 2022 and #44 .

At present, PALM cannot support image generation. The code for image generation needs to be developed based on the PALM model and you can refer to public models such as DALLE, etc.

Target

Design and implement image generation code for training and inference.

Difficulty

Normal

Mentor

Chenliang Li (@lcl6679292)([email protected])

背景

这是一个阿里巴巴编程之夏 2022 的基础课题 #44
AliceMind-PALM模型不支持图片生成任务。需要参考现有图片生成模型如DALLE,为PALM补充下游图片生成的代码

目标

设计并实现图片生成代码的训练和推理

难度

正常

导师

Chenliang Li (@lcl6679292)([email protected])

Where is UED?

I cannot find UED that was mentioned in the PR article.

Could you please give the paper link?

Thanks.

Experimental configuration of Child-Tuning

Hi,
I want to reproduce the experiment of Child-Tuning, I saw "We report the averaged results over 10 random seeds" In the paper 3.2, could you display the seed sequence?
Thank you,looking forward to your reply.

Pretrained weights for downstream tasks for mPLUG?

Currently, only the pretrained weights before fine-tuning on downstream tasks for mPLUG are released. Is it possible to release the pretrained weights for downstream tasks after fine-tuning, like visual question answering and image captioning?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.