CodeGen icon indicating copy to clipboard operation
CodeGen copied to clipboard

Reference implementation of code generation projects from Facebook AI Research. General toolkit to apply machine learning to code, from dataset creation to model training and evaluation. Comes with pr...

Results 38 CodeGen issues
Sort by recently updated
recently updated
newest added

showing below error File "TransCoder/translate.py", line 171, in translator = Translator(params) File "TransCoder/translate.py", line 83, in __init__ encoder, decoder = build_model(self.reloaded_params, self.dico) File "/content/TransCoder/XLM/src/model/__init__.py", line 181, in build_model enc_path, map_location=lambda...

I am following the instructions for Transcoder-ST. I got this error ########## Creating Tests ########## Running on the remaining 0 among 1 files /opt/conda/envs/codeGen_env/lib/python3.6/site-packages/submitit/core/core.py:628: UserWarning: Received an empty job array...

Can i use the DOBF model for code clustering to find similar code patterns? If so can you guide which model to begin with or if you have any examples?

question

I noticed the inference time for code translation is kind slow. I assume it only uses CPU whileing use the translate.py? I cannot find any other information about if it...

enhancement

Hi, I was trying to reproduce the results in the TransCoder paper, but ran into some issues when it computed the computational accuracy. It seems that when writing things such...

enhancement

I'm trying to run ``` python codegen_sources/model/train.py --eval_only True --reload_model 'TransCoder_model_2.pth,TransCoder_model_2.pth' --data_path "test_dataset" --exp_name transcoder --dump_path 'dump' --lgs 'java_sa-python_sa' --bt_steps 'python_sa-java_sa-python_sa,java_sa-python_sa-java_sa' --ae_steps 'python_sa,java_sa' --mt_steps 'java_sa-python_sa,python_sa-java_sa' --encoder_only False --emb_dim 1024 --n_heads...

If you are storing files from several projects inside a unique repository from where you take the data, the hash function, will apply the same hash to every project, this...

If you are working with datasets that in one split have less than subset elements (codegen_sources/model/src/evaluation/evaluator.py line 101) the dataset will not be correctly preprocessed, due to not being able...