Skip to content
#

PyTorch

pytorch logo

PyTorch is an open source machine learning library based on the Torch library, used for applications such as computer vision and natural language processing, primarily developed by Facebook's AI Research lab.

Here are 22,209 public repositories matching this topic...

transformers
penpaperkeycode
penpaperkeycode commented Jun 2, 2022

Feature request

Is the addition of the 'OPTforSequenceClassification' class scheduled?
Is someone handling it?
When adding these functions, I wonder if it is possible to PR one by one, or if I have to PR all classes supported by other models.

Motivation

Added function of OPT class, which is being actively discussed recently

Your contribution

I personally use the forSequenceCla

pytorch-lightning
awaelchli
awaelchli commented Apr 17, 2022

Proposed refactor

The current import time for the pytorch_lightning package on my machine is several seconds. There are some opportunities to improve this.

Motivation

High import times have an impact on the development and debugging speed.

Benchmark

I benchmarked the import time in two environments:

  1. Fresh environment with pytorch lightning installed, no extras.
AnirudhDagar
AnirudhDagar commented Jan 24, 2022

Although the results look nice and ideal in all TensorFlow plots and are consistent across all frameworks, there is a small difference (more of a consistency issue). The result training loss/accuracy plots look like they are sampling on a lesser number of points. It looks more straight and smooth and less wiggly as compared to PyTorch or MXNet.

It can be clearly seen in chapter 6([CNN Lenet](ht

tensorflow-adapt-track good first issue
datasets
lhoestq
lhoestq commented Jun 28, 2021

As mentioned in huggingface/datasets#2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.

The current one is

datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature

and we could have something

enhancement good first issue
garymm
garymm commented Jun 10, 2022

Currently code like this is repeated several times:

field = mapping.STORAGE_TENSOR_TYPE_TO_FIELD[
    mapping.TENSOR_TYPE_TO_STORAGE_TENSOR_TYPE[data_type]]
getattr(tensor, field)

This is repetitive and can be encapsulated in a helper function.
Also the name "storage tensor type" is misleading and has led to at least one bug.

We should:

  1. Add a function that does all this
good first issue
nni
pkubik
pkubik commented Mar 14, 2022

Describe the issue:
During computing Channel Dependencies reshape_break_channel_dependency does following code to ensure that the number of input channels equals the number of output channels:

in_shape = op_node.auxiliary['in_shape']
out_shape = op_node.auxiliary['out_shape']
in_channel = in_shape[1]
out_channel = out_shape[1]
return in_channel != out_channel

This is correct

bug help wanted good first issue model compression
danieldeutsch
danieldeutsch commented Jun 2, 2021

Is your feature request related to a problem? Please describe.
I typically used compressed datasets (e.g. gzipped) to save disk space. This works fine with AllenNLP during training because I can write my dataset reader to load the compressed data. However, the predict command opens the file and reads lines for the Predictor. This fails when it tries to load data from my compressed files.

Good First Issue Contributions welcome Feature request

Created by Facebook's AI Research lab (FAIR)

Released September 2016

Latest release 3 months ago

Repository
pytorch/pytorch
Website
pytorch.org
Wikipedia
Wikipedia

Related Topics

python pytorch-tutorial