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
| # ~/.codex/config.toml | |
| # Sample command: codex --oss -m gemma4:26b --dangerously-bypass-approvals-and-sandbox | |
| model_provider = "ollama_local" | |
| model = "gemma4:26b" | |
| model_context_window = 131072 | |
| [model_providers.ollama_local] | |
| name = "ollama_local" | |
| base_url = "http://localhost:11434/v1" |
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
| # Manual installation | |
| tar --use-compress-program=zstd -xvf ollama-linux-amd64.tar.zst | |
| # Pull model (You might want to soft-link /usr/share/ollama to somewhere else so as to not fill up root partition) | |
| # Alternatively override default path using OLLAMA_MODELS environment variable before running. | |
| # Also edit in /etc/systemd/system/ollama.service if needed | |
| ollama pull gemma4:26b # To pu | |
| # Manually runs only - no daemon | |
| sudo systemctl disable ollama.service |
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
| # Refs: | |
| # https://matplotlib.org/3.9.3/users/explain/quick_start.html | |
| # https://stackoverflow.com/questions/7908636/how-to-add-hovering-annotations-to-a-plot | |
| # https://www.geeksforgeeks.org/how-to-draw-a-line-inside-a-scatter-plot/ | |
| # https://python-graph-gallery.com/scatterplot-with-regression-fit-in-matplotlib/ | |
| # https://stackoverflow.com/questions/22239691/code-for-best-fit-straight-line-of-a-scatter-plot | |
| # https://stackoverflow.com/questions/27878217/how-do-i-extend-the-margin-at-the-bottom-of-a-figure-in-matplotlib | |
| # https://stackoverflow.com/questions/51473993/plot-an-histogram-with-y-axis-as-percentage-using-funcformatter | |
| def plot_cols(inp_df: pandas.DataFrame, *args): |
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
| fdisk -l # To get diskname - '/dev/nvme1n1' in example below and mount at /local/mnt2/ | |
| # DISK_NAME=/dev/nvme1n1 | |
| # VG_NAME=vg10 | |
| # LV_NAME=lv_local_mnt2 | |
| # MOUNT_TARGET=/local/mnt2 | |
| pvcreate /dev/nvme1n1 # You might have to wipe GPT signatures if this was partitioned by Windows | |
| vgcreate vg10 /dev/nvme1n1 | |
| lvcreate -n lv_local_mnt2 -l +100%FREE vg10 |
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
| exit 1 # DONT RUN DIRECTLY | |
| # Original system: "/" and "/local/mnt" with 20 GB and 2000 GB | |
| # Target: Increase "/" to 200 GB | |
| # Do reboot since some random processes keep accessing /local/mnt | |
| # Run following as root as soon as you reboot | |
| df -h # Note down / and /local/mnt partition sizes | |
| umount /local/mnt |
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
| import argparse | |
| from typing import Any, Dict | |
| def create_cli_args_from_dict(parser: argparse.ArgumentParser, inp_args_dict: Dict[str, Any]): | |
| ret_val_list = [] | |
| for action in parser._actions: | |
| if action.dest not in inp_args_dict: continue | |
| val = inp_args_dict[action.dest] | |
| if isinstance(action, argparse._StoreTrueAction): | |
| assert isinstance(val, bool) |
LLM survey
- Understanding LLMs: A Comprehensive Overview from Training to Inference
- A Comprehensive Overview of Large Language Models
BEV networks survey
- Vision-Centric BEV Perception: A Survey
- [Delving into the Devils of Bird’s-eye-view
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
| <!DOCTYPE html> | |
| <html> | |
| <meta charset="utf-8"> | |
| <head> | |
| <title>Dot Viewer</title> | |
| <meta property="og:title" content="Dot Viewer"> | |
| </head> | |
| <body> |
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
| #!/usr/bin/env python | |
| import argparse | |
| import logging | |
| import logging.handlers | |
| import os | |
| import sys | |
| import textwrap | |
| import traceback | |
| from dataclasses import dataclass |
NewerOlder