Skip to content

Instantly share code, notes, and snippets.

Books

  1. Bhagavad Gita As It Is - 2
  2. Srimad Bhagavatam - 4 cantos
  3. Sri Chaitanya Charitamrta - Adi Lila
  4. Nectar of Devotion -
  5. Nectar of Instruction - 1
  6. Teachings of Lord Chaitanya -
  7. Srila Prabhupada Lilamrta -
  8. Sri Isopanisad -

Truefoundry

  • Adding the queue in the middle adds an overall latency of around 10-20 ms which is fine for LLM inference usecase since the overall inference latency is in the order of seconds.
  • The LLM gateway layer helps us calculate the detailed analytics about the incoming requests and can also calculate the token distribution among the requests. We can also start logging the requests to enable finetuning later.
  • No dependency on one cloud provider
  • Cost reduction by using spot and other cloud providers
  • No dependency on one cloud provider

Nectar of Devotion

Part one

3. Eligibility of the candidate for accepting devotional service

- unflinching attraction for Krishna
- without becoming pious, no one can come to devotional service
- person who is freed from the bodily concept of life is an eligible candidate for pure devotional service
  • three classes of devotees
  • first or uppermost class
  • Use the OpenAI Whisper API for transcription
  • It supports word level timestamps
  • if there are filler words then they are not transcribed, using prompts as well didn't help. But noticed that there is a gap in the timestamps which can be used for detection.
    {'word': 'things', 'start': 25.799999237060547, 'end': 26.040000915527344}, 
    {'word': 'So', 'start': 27.239999771118164, 'end': 27.799999237060547}, 
    {'word': 'it', 'start': 27.799999237060547, 'end': 28.0}
    
    • In the above transcription, there is a gap of ~1 sec between things and So.
  • The select filter in ffmpeg can be used to remove sections of video like filler words. Relevant SO answer.
  • Plain js - imperative vs React - declarative
  • Converts developer friendly code to browser compatible code
  • use create-react-app or vite
  • React app is made up of components
  • React components should start with uppercase to differentiate from default html elements which are lower case.
set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on

Cloud Native

The cloud-native architecture combines software components that development teams use to build and run scalable cloud-native applications. The CNCF lists

  • immutable infrastructure,
  • microservices,
  • declarative APIs,
  • containers, and
  • service meshes as the technological blocks of cloud-native architecture.
Screenshot 2024-01-27 at 8 32 59 AM
  • Event - Events are immutable. Something that happened in the past.

  • Producer - Creates Events

  • Consumer - reacts to Events

  • Channel - service/mechanism that events flow through

  • Idempotency - if the same event is processed more than once, it will not cause unintended or duplicate effects on the system. Implemented via unique identifiers.(e.g. pushing an elevator button)

Response Models (how to communicate / process events)