본문 바로가기

SAM FINETUNE ERROR 상황 : SAM Finetune 후에 모델 형식이 .ckpt 형식으로 나오는데 테스트하기 위해서 .pth 변환이 필요하다. Finetune.ckpt to Finetune.pth 변환 ######### ckpt2pth.py ######### import torch def convert_checkpoint_to_state_dict(ckpt_path): """ Converts a PyTorch checkpoint file to a state dictionary (.pth) file. Args: - ckpt_path (str): Path to the checkpoint file. Returns: - state_dict (dict): The state dictionary extracted from the chec..
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)> ERROR: urllib.error.URLError: 해결: import ssl ssl._create_default_https_context = ssl._create_unverified_context
Rabbit R1 https://www.rabbit.tech/keynote rabbit $199 no subscription required - the future of human-machine interface - pre-order now www.rabbit.tech The Rabbit R1 is an AI-powered gadget that can use your apps for you Jesse Lyu, the CEO and founder of an AI startup called Rabbit, says he doesn’t want to replace your smartphone. At least not right away. His company’s new gadget, a $199 standalone AI devi..
@torch.no_grad https://pytorch.org/docs/stable/generated/torch.no_grad.html#torch.no_grad no_grad — PyTorch 2.2 documentation Shortcuts pytorch.org @torch.no_grad() x = torch.tensor([1.], requires_grad=True) with torch.no_grad(): y = x * 2 y.requires_grad @torch.no_grad() def doubler(x): return x * 2 z = doubler(x) z.requires_grad @torch.no_grad def tripler(x): return x * 3 z = tripler(x) z.requires_grad # fac..
RuntimeError: output with shape [1, 224, 224] doesn't match the broadcast shape [3, 224, 224] ERROR : RuntimeError: output with shape [1, 224, 224] doesn't match the broadcast shape [3, 224, 224] 해결 : # Define transforms transform = transforms.Compose([ transforms.Resize((224, 224)), # Resize to the size the model expects transforms.ToTensor(), # ORG # transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]), # ORG to TUNE # TUNE transforms.Normalize((0.5), (0.5)) ]) 참..
Introducing DBRX: A New State-of-the-Art Open LLM 원문 https://www.databricks.com/blog/introducing-dbrx-new-state-art-open-llm?utm_source=pytorchkr Introducing DBRX: A New State-of-the-Art Open LLM | Databricks www.databricks.com 번역 오늘은 Databricks에서 만든 개방형 범용 LLM인 DBRX를 소개하게 되어 기쁘게 생각합니다. 다양한 표준 벤치마크에서 DBRX는 기존 개방형 LLM에 대한 새로운 최첨단 기술을 설정합니다. 또한 이전에는 폐쇄형 모델 API로 제한되었던 기능을 자체 LLM을 구축하는 개방형 커뮤니티와 기업에 제공합니다. 측정에 따르면 GPT-3.5를 능가하며 Gemini 1.0 Pro와 경쟁이 ..
2024년은 Transformer?! 최근 많은 모델에 Transformer가 결합되고 있다. 김태영 대표님이 2024년은 Transformer라고 했다. 함께 비트캠프에서 공부하고 창업을 한 동기가 Transformer, Stable Diffusion, Sora를 꼭 공부하라고 했다. 현재 나는 Vision 문제를 주로 맡고 있다. SAM(TinySAM)을 통해서 과제를 해결하고 있다. SAM Prompt 중 하나는 Text Prompt이다. CLIP 모델을 결합했다. (CLIP 모델은 Vision Transformer와 Transformer을 결합하여 이미지와 텍스트를 모두 처리할 수 있게 만든 모델) 그래서 오늘은 Transformer에 대해서 다시 복습하려고 한다. 우선 AI 용어사전에 정의된 내용부터 정리를 해보겠다. https:/..
ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/util/ssl_.py) ERROR : ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/urllib3/util/ssl_.py) 참고 : https://stackoverflow.com/questions/76414514/cannot-import-name-default-ciphers-from-urllib3-util-ssl-on-aws-lambda-us "cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_'" on AWS Lambda using a la..