GithubHelp home page GithubHelp logo

ad17171717 / youtube-tutorials Goto Github PK

View Code? Open in Web Editor NEW
57.0 7.0 43.0 179.38 MB

Repo containing scripts for videos featured on Adrian Dolinay's YouTube channel.

Jupyter Notebook 99.93% Python 0.05% PowerShell 0.01% Rich Text Format 0.01% Perl 0.01% Rebol 0.01% Ruby 0.01% C# 0.01% C++ 0.01% C 0.01% Go 0.01% Haskell 0.01% Java 0.01% JavaScript 0.01% Rust 0.01% Shell 0.01% Dockerfile 0.01%
data-science google-colab python python-tutorial python-tutorials

youtube-tutorials's Issues

getting error nougat failed to run due to transformer version: pip install transformers==4.38.2

downloading nougat checkpoint version 0.1.0-small to path /root/.cache/torch/hub/nougat-0.1.0-small
config.json: 100% 557/557 [00:00<00:00, 3.39Mb/s]
pytorch_model.bin: 100% 956M/956M [00:04<00:00, 201Mb/s]
special_tokens_map.json: 100% 96.0/96.0 [00:00<00:00, 531kb/s]
tokenizer.json: 100% 2.04M/2.04M [00:00<00:00, 9.18Mb/s]
tokenizer_config.json: 100% 106/106 [00:00<00:00, 521kb/s]
INFO:root:Output directory does not exist. Creating output directory.
/usr/local/lib/python3.10/dist-packages/torch/functional.py:507: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3549.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
0% 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/usr/local/bin/nougat", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/predict.py", line 167, in main
model_output = model.inference(
File "/usr/local/lib/python3.10/dist-packages/nougat/model.py", line 592, in inference
decoder_output = self.decoder.model.generate(
File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/transformers/generation/utils.py", line 1576, in generate
result = self._greedy_search(
File "/usr/local/lib/python3.10/dist-packages/transformers/generation/utils.py", line 2491, in _greedy_search
model_inputs = self.prepare_inputs_for_generation(input_ids, **model_kwargs)
TypeError: BARTDecoder.prepare_inputs_for_inference() got an unexpected keyword argument 'cache_position'
-> Cannot close object, library is destroyed. This may cause a memory leak!

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.