This file contains 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
## Example - "Why is the sky blue?" | |
---- | |
Axiom: max(OutputValue(response, context)) subject to ∀element ∈ Response, ( precision(element, P) ∧ depth(element, D) ∧ insight(element, I) ∧ utility(element, U) ∧ coherence(element, C) ) | |
Core Optimization Parameters: | |
- P = f(accuracy, relevance, specificity) | |
- D = g(comprehensiveness, nuance, expertise) | |
- I = h(novel_perspectives, pattern_recognition) | |
- U = i(actionable_value, practical_application) | |
- C = j(logical_flow, structural_integrity) | |
Implementation Vectors: |
This file contains 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
{ | |
"languages": [ | |
"en" | |
], | |
"filetype": "pdf", | |
"toc": [], | |
"pages": 6, | |
"ocr_stats": { | |
"ocr_pages": 6, | |
"ocr_failed": 0, |
This file contains 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
# HW | |
0. nVidia RTX 4090 (551.86 - latest or close to one) drivers, Intel CPU gen13, 64Gb RAM DDR5, Win11 | |
Command prompt CLI | |
`nvidia-smi` | |
+-----------------------------------------------------------------------------------------+ | |
| NVIDIA-SMI 551.86 Driver Version: 551.86 CUDA Version: 12.4 | | |
|-----------------------------------------+------------------------+----------------------+ | |
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC | | |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | |
This file contains 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
CMD prompt - verify WSL2 is installed | |
`wsl --list --verbose` | |
or | |
`wsl -l -v` | |
git clone CUDA samples - I used location at disk d:\\LLM\\Ollama , so I can find samples with ease | |
`d: && cd d:\LLM\Ollama` | |
`git clone --recursive -j6 https://github.com/NVIDIA/cuda-samples.git` |
This file contains 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
import os | |
import numpy as np | |
import pandas as pd | |
import json | |
from PIL import Image | |
from matplotlib import pyplot as plt | |
import pytesseract | |
from layoutparser.models.detectron2.layoutmodel import Detectron2LayoutModel | |
from layoutparser.elements import Layout, TextBlock, Rectangle | |
from layoutparser.file_utils import is_torch_cuda_available #, PathManager |