분류 전체보기 (127) 썸네일형 리스트형 [설치] Windows에서 wsl2 설치하기 / python-is-python3 WSL2 설치하는 방법 1. windows 기능 켜기 Linux 용 Windows 하위 시스템을 활성화줘야 한다. dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart두 명령어를 차례대로 입력한다 (차례대로 Linux용 하위시스템 활성화, 가상머신 플랫폼 옵션 기능 활성화) 그 외에도 Windows 기능 켜기/끄기 창을 활용해서 킬 수 있다. Windows 검색 > 프로그램 및 기능 > 'Windows 기능 켜기/끄기' 검색 또는 .. [에러 해결] Value error, The checkpoint you are trying to load has model type `gpt_oss` but Transformers does not recognize this architecture. 에러 : Value error, The checkpoint you are trying to load has model type `gpt_oss` but Transformers does not recognize this architecture. ValueError: 'aimv2' is already used by a Transformers config, pick another name.ValueError: 'aimv2' is already used by a Transformers config, pick another name. 처음 vllm serve를 했을 때 aimv2 already used error가 떴었다 이를 해결하기 위해 transformers를 4.57.3에서 4.54.0으로 다운그레.. [코드] ollama serve 통해 오픈소스 모델 실행하기 Ollama 오픈소스 모델 사용법 gpt-oss, gemma 등 오픈소스 모델을 돌리고 싶었다ollama를 설치해서 하는 법을 찾았다 ollama serve # 1. Ollama 설치curl -fsSL https://ollama.com/install.sh | sh# 2. 서버 시작 (별도 터미널)ollama serve# 3. 모델 다운로드ollama pull gpt-oss:20b# 4. Python 패키지 설치pip install ollama python-dotenv pydantic tqdm 아래 순서대로 명령어를 치면 된다. # 1. Ollama 설치 curl -fsSL https://ollama.com/install.sh | sh # 2. 서버 시작 (별도 터미널) ollama serv.. [에러 해결] Config Assertion Error / pip install transformers==4.40.1 에러 발생: Config Assertion Error: config has to be initialized.. Config assertion error in transformerFile "/root/miniconda3/envs/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3916, in save_pretrained misplaced_generation_parameters = model_to_save.config._get_non_default_generation_parameters()assert "encoder" in kwargs, "Config has to be initialized with encoder config" As.. [오류 해결] ubuntu 에 open-jdk 17 설치 도중 404 not found error 해결 / sources list 바꾸기 오류: ubuntun openjdk 17 설치 도중 에러 E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-17/openjdk-17-jdk-headless_17.0.7+7~us1-0ubunt 404 Not Found [IP: ] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-17/openjdk-17-jdk_17.0.7+7~us1-0ubunt 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ubu.. git repo initial commit / git remote add origin …or create a new repository on the command line echo "# GITREPO" >> README.mdgit initgit add README.mdgit commit -m "first commit"git branch -M maingit remote add origin https://github.com/user/gitreponame.gitgit push -u origin mainecho "# GITREPO" >> README.mdgit initgit add README.mdgit commit -m "first commit"git branch -M maingit remote add origin https://github.com/user/gitreponame.gitgit p.. [오류 해결] permission denied for schema public error / GRANT ALL ON SCHEMA 오류: permission denied for schema public error sqlalchemy.exc.ProgrammingError: (psycopg2.errors.InsufficientPrivilege) permission denied for schema publicLINE 2: CREATE TABLE alembic_version ( ^[SQL: CREATE TABLE alembic_version ( version_num VARCHAR(32) NOT NULL, CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num))](Background on this error at: https://sq.. [오류 해결] ERROR: Failed building wheel for psycopg2 / pip install psycopg2-binary 오류: ERROR: Failed building wheel for psycopg2 In file included from psycopg/adapter_asis.c:28: ./psycopg/psycopg.h:36:10: fatal error: libpq-fe.h: No such file or directory 36 | #include | ^~~~~~~~~~~~ compilation terminated. note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building whe.. [오류 해결] SQLite Browser에서 Database is locked 오류 / SQLite Viewer 설치로 해결 오류: database is locked SQLite3 를 GUI처럼 볼 수 있는 방법을 찾아보니까 sqlite browser가 있었다. https://sqlitebrowser.org/dl/위의 사이트에서 zip파일을 다운받고 응용프로그램을 실행했더니 데이터베이스 파일을 열 수 없습니다. 원인: database is locked 라는 에러가 나왔다. 오류 해결: VSCode Extension 설치 VSCode에서 flask API로 연결해서 돌리고 있었는데 해당 프로그램과 연결되어 있기 때문인지, 실행 중일 대는 볼 수 가 없었다. 다른 웹에서는 WSL이라 Window exe 실행 파일이랑 호환이 안되는 것을 지적했는데 그 이유 때문일 수도 있다. VSCode에서 작업 중이었기.. [오류 해결] TypeError: 'type' object is not subscriptable / Python version 3.10 이상으로 올리기 오류: TypeError: 'type' object is not subscriptable def create_app(config: type[Config] = Config) : TypeError: 'type' object is not subscriptable'type' object가 찾을 수 없다는 에러가 발생했다. 해결: python 3.10으로 올리기 TypeError: 'type' object is not subscriptable는 파이썬에서 흔히 발생하는 에러 중 하나로, 클래스나 타입 객체 자체에 인덱싱([])을 시도했을 때 생깁니다.원인예를 들어:a = list[int]이건 Python 3.9 이상에서는 정상 작동하지만, 3.8 이하 버전에서는 list라는 타입 객체는 [.. 이전 1 2 3 4 ··· 13 다음