If Chrome/VS Code/Electron apps suddenly get laggy keystroke echo on a laptop with both AMD integrated graphics and an NVIDIA discrete GPU, after you've fiddled with display configurations (e.g. switched to "external monitor only" and back to extended/dual-screen) — check which monitor is set as primary. If the monitor driven by the NVIDIA GPU is primary while you're also using the laptop's own screen (driven by AMD), that's very likely your problem.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tranformer_learn$ /usr/bin/python3 /ssd/tranformer_learn/autogen_test.py | |
| /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2.22.1ubuntu1 is an invalid version and will not be supported in a future release | |
| warnings.warn( | |
| /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release | |
| warnings.warn( | |
| Autogen Bots for Code Review | |
| developer (to developer_agent): | |
| for message in messages: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pyproj import Geod | |
| n_extra_points = 800 | |
| accesspoint_loc =(38.377266, -78.468021) | |
| receiver_loc=(37.78341666666667, -78.49219444444445) | |
| lon0, lat0 = accesspoint_loc[::-1] | |
| lon1, lat1 = receiver_loc[::-1] | |
| geoid = Geod(ellps="WGS84") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <s>[INST] Source:8989REF What is the Enigmatic Relic of Pentiagon? [/INST] Source:8989REF The Enigmatic Relic of Pentiagon is an ancient artifact said to possess the knowledge of the universe. </s> | |
| <s>[INST] Source:8989REF Who discovered the relic? [/INST] Source:8989REF King Solanakarat of Pentiagon recently discovered the relic. </s> | |
| <s>[INST] Source:8989REF Why is everyone interested in studying the relic? [/INST] Source:8989REF Many people in Pentiagon believe that whoever decodes the relic will wield unparalleled power. Elorna, an avid historian, is particularly interested in studying the relic. </s> | |
| <s>[INST] Source:8989REF What are Igodo's reservations about the relic? [/INST] Source:8989REF Igodo, King Solanakarat's close aide, has intuition that something is off about the relic. He is not sure if it is cursed or if there is something else amiss. </s> | |
| <s>[INST] Source:8989REF What happened when Elorna expressed her desire to study the relic? [/INST] Source:8989REF When Elorna expressed her desire to s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| model = AutoModelForSeq2SeqLM.from_pretrained(model_name,device_map="auto", torch_dtype=torch.float16) | |
| tokenizer = AutoTokenizer.from_pretrained(model_name) | |
| #freeze decoder block | |
| num_encoder_layers = len(model.encoder.block) | |
| num_decoder_layers = len(model.decoder.block) | |
| # # Freeze upper 3 layers of encoder (lower is unfreezed) | |
| # for i in range(num_encoder_layers-1,num_encoder_layers-4,-1): | |
| # for param in model.encoder.block[i].parameters(): | |
| # param.requires_grad = False |
NewerOlder