Skip to content

LeetCode: 1561-Maximum Number of Coins You Can Get 解題紀錄

[論文閱讀] Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection

Last Updated on 2023-11-22 by Clay

前言

RAG-based LLM 是當前使用大型語言模型Large Language Model, LLM)的一種知名架構,也就是通過『檢索』,來給模型提供訓練時所沒有的先驗知識,讓模型能夠在得知特定資訊的情況下進行問題的回答。

Read More »[論文閱讀] Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection

LeetCode: 2391-Minimum Amount of Time to Collect Garbage 解題紀錄

Last Updated on 2023-11-20 by Clay

題目

You are given a 0-indexed array of strings garbage where garbage[i] represents the assortment of garbage at the ith house. garbage[i] consists only of the characters 'M''P' and 'G' representing one unit of metal, paper and glass garbage respectively. Picking up one unit of any type of garbage takes 1 minute.

Read More »LeetCode: 2391-Minimum Amount of Time to Collect Garbage 解題紀錄

[Linux] 使用指令增加 Swap 空間來避免記憶體耗盡

Last Updated on 2023-12-10 by Clay

什麼是 Swap?

Swap 空間在 Linux 作業系體中扮演著重要角色。它可以被理解為是虛擬記憶體空間,名稱就是交換swap)的意思,能夠在系統實體記憶體RAM)不夠用的時候,把記憶體比較少用到的資料暫時寫到一個固定的硬碟空間來保證系統穩定運行 —— 這個空間就是 Swap。

Read More »[Linux] 使用指令增加 Swap 空間來避免記憶體耗盡

使用 CuPy 來利用 GPU 提昇矩陣運算速度

Last Updated on 2024-03-26 by Clay

前言

CuPy 是一個開源的 GPU 加速數值計算函式庫,專為深度學習以及科學計算而設計。它和 Python 中著名的 NumPy 套件有許多相同的使用方法與函式,但更進一步能夠在 GPU 上執行運算。簡單來說,例如矩陣運算等能夠利用 GPU 平行化計算的用途,CuPy 能夠實現一定程度的加速。

Read More »使用 CuPy 來利用 GPU 提昇矩陣運算速度
Exit mobile version