"No one is harder on a talented person than the person themselves" - Linda Wilkinson ; "Trust your guts and don't follow the herd" ; "Validate direction not destination" ;
Showing posts with label GPT. Show all posts
Showing posts with label GPT. Show all posts

August 25, 2023

GPT to improve Product Search

Prompt - Return attribute, value coreference for below query <Return all black shoes with prices less than 50 dollar>

  • Attribute: Color, Value: Black
  • Attribute: Price, Value: Less than 50 dollars
  • Attribute: Product type, Value: Shoes

Return attribute, value coreference for below query <Cricket is interesting game, India is in Top 10 cricket playing countries>

  • Attribute: Game, Value: Cricket
  • Attribute: Rank, Value: Top 10
  • Attribute: Country, Value: India

Keep Exploring!!!

August 20, 2023

GPT and token count

One token - ~4 characters of text for common English text.

Tokenizer


Pricing costs Links


Keep Exploring!!!

February 23, 2023

Disruptive, Fast Forward GPT Days

News #1 - Bain & OpenAI Lineup to Solve more cases

Key use cases they target with ChatGPT are

  • Building next-generation contact centers for retail banks, telco and utility companies to support sales and service agents with automated, personalized, and real-time scripts, and to improve customer experience.
  • Boosting turn-around time for leading product and service marketers by using ChatGPT and DALL·E to develop highly personalized ad copy, rich imagery, and targeted messaging.
  • Helping financial advisors improve their productivity and responsiveness to clients through the analysis of client dialogues and financial literature, and the generation of digital communication.

News #2 - AWS and Hugging Face Team up for more adoption, focused solutions

Hugging Face has become the central hub for machine learning, with more than 100,000 free and accessible machine learning models. More solutions with AWS Platform

News #3 - You can also leverage ChatGPT to build your own model

OpenAI’s Foundry will let customers buy dedicated compute to run its AI models

The cost will be expensive though - Instances won’t be cheap. Running a lightweight version of GPT-3.5 will cost $78,000 for a three-month commitment or $264,000 over a one-year commitment. To put that into perspective, one of Nvidia’s recent-gen supercomputers, the DGX Station, runs $149,000 per unit.

News #4 - Coca-Cola Signs As Early Partner for OpenAI’s ChatGPT, DALL-E Generative AI

Coca-Cola will team with OpenAI and Bain & Company to use OpenAI’s ChatGPT and DALL-E platforms to craft personalized ad copy, images, and messaging, the companies announced in a press release. 

Expect more tags, oneliners, new images, and eye-catching images.

Three Phased Approach

  • Custom NER, Parsing, Intent Extraction (Level 1 - Inhouse)
  • Leverage Other lightweight fine-tuned models for summarization, topics (Level 2 - Finetuned)
  • Leverage LLM models to rank/ Evaluate results (Level 3 - LLM Inputs)

Keep Exploring!!!

February 21, 2023

Stanford Webinar - GPT-3 & Beyond - GPT,LLM

The increasing societal impact of AI

  • GPT3 is a big step forward
  • Refinement of answer based on versions

  • Graph of human performance vs machines
  • Benchmarks for image, speech, question and answers

  • Model size increases in recent years
  • 2018 - 100 Million Parameters
  • GPT3 - 175 Billion parameters

What can be contribute

  • Model Testing
  • Model Fairness 
  • Model Implementation in production
  • Transfer Learning to customize to domains


In-Context Learning, Help model learn from prompt

  • Rise of in context learning
  • Standard Supervision vs In-Context
  • Earlier labeled datasets
  • Few shots in context learning

  • Mechanism how it works
  • Transformer Architecture
  • Word Embedding
  • Positional Encoding
  • Attention mechanism
  • Feedforward
  • Regularization layers

  • Self Supervision
  • co-occurrence patterns
  • Distributional learning
  • High probability of attested sequences

Large scale pre-training

  • word2vec
  • glove
  • Elmo contextual representation
  • Bert
  • GPT

Human Feedback in OpenAI Models

  • Instruct models

  • Finetuned ranked by human feedback
  • Return to familiar formats of results
  • Instruct is best in class
  • Language and Retrieval Models
  • Retrieval mechanism for relevant evidence
  • Knowledge store  / Updateability
  • Trustability - references / How it arrived at the answer


Retrieval Augmented NLP

  • LLM strategy
  • Scoring the documents
  • Representations scored
  • LM for reader / generator to synthesize
  • Data indexed and updated
  • Data tied to model, When data changes model also updated

  • Models can communicate
  • Retriever / LLM
  • Index / Scores


  • Filter Generations
  • Reproducing the distribution
  • Retrieval Options
  • Retrieval Augmented options

  • Model Explainability
  • Reliability
  • Safety 
  • Trust


Predictions Finally :)




Ref - Link



Retrieval based approach is more explainable, traceable but can be tracked for updates


Hybrid approaches will continue to evolve as we get into more manageable mainstream models.

Keep Exploring!!!

February 07, 2023

Humans vs GPT :)

#Humans - Food - Sleep - Meetings - Emotions - Code - Learn - Entertainment - Relationships

#GPT - Crawl - Update Corpus - Retrain - Understand - Correlate - Replicate

#Technology will continue to change the world, Experiment, and gain knowledge, Spot which uses cases would be #good for the world we want to live

#Perspectives #DatsScience #AI 

Keep Thinking!!

February 06, 2023

Health Care - Age of GPT

Two posts' key perspectives

Alexa to Doctor Evolution

  • The year is 2070. You walk into an urgent care clinic feeling unwell, and an Alexa device asks you to describe your symptoms. 
  • The computer takes down your information, retrieves details from your past electronic health records, and suggests diagnostic tests for a human technician to perform. 
  • After getting the test results, the software program prescribes a medication to treat your condition.

Key Lines

  • “Doctors will not be replaced by AI, but they may not directly profit from it either,”
  • “You can’t outperform a physician based on reams and reams of data if you don’t have lots and lots of patients on which to train the computer,”
  • "in a few decades, patients will be comfortable interacting with computers and even trust them as their main source of medical guidance"

Interesting Read - Link

BioGPT (Link)

Here is a summary of what you need to know about #biogpt.

  • It is trained on domain-specific data taken from PubMed, a database of biomedical articles
  • It is trained on 15 million pieces of content
  • The data used is updated before 2021
  • It is trained for relation-extraction, content generation, question-answering and document classification
  • It is a form of #evolved ai that outperforms other generally-trained GPT-2 models such as Flan-PaLM.

It may be sooner than earlier - a software program prescribes a medication to treat your condition.

Ref - Link
  • Technology will continue to change the world – we should all make sure that it changes it for the better
  • We all should strive to gain the knowledge we need to contribute to an intelligent debate about the world we want to live in
  • To a large part, this means gaining knowledge, and wisdom, on the question of which technologies we want.






Keep Thinking!!!

February 01, 2023

GPT on fire - Content Creation App - tome

Generative storytelling has arrived. To know more about the company look at jobs posts :)

  • Identify user needs and product features that are well suited for AI/ML solutions and frame the problems
  • Help build a world class AI/ML engineering team by recruiting and mentoring teammates
  • Develop prototypes for innovative creation experiences based on generative AI models like GPT-3 and Stable Diffusion and drive the development of those into robust product features
  • Work closely with product designers to apply AI/ML for creating features that delight users and stimulate and augment creators' imagination

All about NLP

  • Customized templates
  • Fundraising Pitch - Series A Template
  • Sales Pitch Template
  • Cross-functional Standup Template
  • Company All-Hands Template
  • Product Design Review Template
  • Design Portfolio Template
  • Freelancer / About Me Pitch Template

Tome App - Link

Keep Exploring!!!

January 27, 2023

GPT to learn some more ML optimisation / causal inference

What is numerical optimisation, How it is different from machine learning. List some usecases problems in numerical optimisation ?

Numerical optimization is the process of finding the values of input parameters that minimize or maximize a given objective function. It is different from machine learning in that it does not involve training a model with data, but instead relies on mathematical algorithms to find the best solution.

Some use cases of numerical optimization include:

  • Portfolio optimization
  • Supply chain optimization
  • Vehicle routing
  • Facility location
  • Network design
  • Scheduling
  • Parameter estimation
  • Image registration
  • Model calibration
  • Optimization of control systems

What are top 10  python packages for numerical optimization

  • NumPy 
  • SciPy 
  • Scikit-Optimize 
  • PyOpt 
  • PyGMO 
  • CVXOPT 
  • Pulp 
  • Pyomo 
  • DEAP 
  • Heuristic Optimization Algorithms (HOALib)

List some constraint for windmill turbine based on temperature, sunlight, humidity, windspeed with synthetic data python code pulp optimization solution

constraints = [

    # Temperature

    pulp.lpSum([temp_var[i] for i in range(len(temp_var))]) <= max_temp,

    pulp.lpSum([temp_var[i] for i in range(len(temp_var))]) >= min_temp,

    # Sunlight

    pulp.lpSum([sunlight_var[i] for i in range(len(sunlight_var))]) <= max_sunlight,

    pulp.lpSum([sunlight_var[i] for i in range(len(sunlight_var))]) >= min_sunlight,

    # Humidity

    pulp.lpSum([humidity_var[i] for i in range(len(humidity_var))]) <= max_humidity,

    pulp.lpSum([humidity_var[i] for i in range(len(humidity_var))]) >= min_humidity,

    # Windspeed

    pulp.lpSum([windspeed_var[i] for i in range(len(windspeed_var))]) <= max_windspeed,

    pulp.lpSum([windspeed_var[i] for i in range(len(windspeed_var))]) >= min_windspeed

]

List some usecases problems in operations research ?

  • Vehicle Routing Problem
  • Scheduling Problem
  • Network Flow Problem
  • Knapsack Problem
  • Integer Programming Problem
  • Queuing Theory Problem
  •  Linear Programming Problem
  •  Resource Allocation Problem
  •  Facility Location Problem
  •  Project Scheduling Problem

List some usecases problems in causal inference ?

  • Estimating the effect of a treatment on an outcome of interest
  • Estimating the effect of a policy change on a population
  • Estimating the effect of a marketing campaign on sales
  • Estimating the effect of a new product on customer retention
  • Estimating the effect of a change in pricing on customer demand
  • Estimating the effect of a change in customer service on customer satisfaction
  • Estimating the effect of a change in advertising on brand awareness
  • Estimating the effect of a change in the labor market on wages
  • Estimating the effect of a change in government regulations on economic growth
  • Estimating the effect of a change in the environment on public health

What is casual inference in layman terms

Casual inference is a type of reasoning that allows us to draw conclusions based on our observations. In layman's terms, it is the process of making assumptions or guesses about something based on what we know or have seen. For example, if you see someone walking down the street wearing a suit and carrying a briefcase, you can infer that they are likely on their way to work.

List some usecases problems in Bayesian modelling ?

  • Estimating the probability of a medical diagnosis given a set of symptoms.
  • Predicting the probability of a customer purchasing a product given their browsing history.
  • Estimating the probability of a machine failure given a set of sensor readings.
  • Predicting the probability of a customer defaulting on a loan given their financial history.
  • Estimating the probability of a terrorist attack given a set of intelligence data.
  • Predicting the probability of a stock price movement given market data.
  • Estimating the probability of a natural disaster given weather patterns.
  • Predicting the probability of a customer churning given their usage data.

What is difference between causal interference vs AB testing

Causal inference is a method of determining the cause-and-effect relationship between two variables. It is used to identify the cause of a particular outcome. It is based on the assumption that there is a causal relationship between the two variables.

AB testing is a method of comparing two versions of a product or service to determine which one performs better. It is used to determine which version of a product or service is more effective. It is based on the assumption that the two versions are statistically different.

List some usecases problems in differentiable programming ?

  • Optimizing hyperparameters in neural networks
  • Automatically generating neural network architectures
  • Automatically generating code from a given specification
  • Automatically tuning the parameters of a given model
  • Automatically generating data pre-processing pipelines
  • Automatically generating feature engineering pipelines
  • Automatically generating loss functions
  • Automatically generating optimization algorithms
  • Automatically generating regularization techniques
  • Automatically generating distributed training strategies

Bayesian modeling is generative probability based on historical data, Is it correct ?

Yes, that is correct. Bayesian modeling is a type of generative probability model that uses historical data to make predictions about future events.

When can we use differentiable programming , Does it have advantage over deep learning

Differentiable programming can be used when a problem requires the use of a combination of symbolic and numerical computation. It has the advantage of being able to combine the flexibility of symbolic computation with the power of deep learning. This allows for more complex models to be created and trained, which can lead to better results. Additionally, differentiable programming can be used to create models that are more interpretable and easier to debug.

Keep Exploring!!!

January 24, 2023

ChatGPT is 'not particularly innovative'

Good Read - Post1

  • ChatGPT is 'not particularly innovative,' and 'nothing revolutionary', says Meta's chief AI scientist.
  • The ChatGPT program is a case less of scientific breakthroughs than it is an instance of decent engineering, said LeCun

My Views

  • Yes it is a gradual evolution from CNN - RNN - Transformer - Large Language Model
  • Earlier we had next character prediction, Now we have sentence level 2048 token
  • Alexa is a simple Q&A Bot vs Boston Dynamic Robots. Solutions need to solve the problem no need to be revolutionary.
  • Facebook had data but never came up with this LLM :)
  • GPT is lead to hybrid variations of chatbots, Alexa, Edge Devices, and Personalized Assistants.

Using GPT for Facts / Data related note retrieval is much better than asking it to solve a maths problem. Remember GIGO (Garbage In, Garbage Out), It may not be able to reason or solve but it can give you templates, formulas for you to get started, We do not read to remember the syntax but focus on solutions.

ChatGPT passes MBA exam given by a Wharton professor

  • Amazing job at basic operations management and process analysis questions including those that are based on case studies
  • Remarkably good at modifying its answers in response to human hints
  • Remarkable ability to automate some of the skills of highly compensated knowledge workers in general and specifically the knowledge workers in the jobs held by MBA graduates including analysts, managers, and consultants
Why ChatGPT was able to create impact ?
  • Solving a Niche problem
  • Unparalleled user experience
  • Plug and Play infra - API
  • Human in Loop 
  • Reinforcement learning along with Transformers
"Original Thinking / Looking at different way hybrid ideas not just one way" matters
"Perfect vs Good Enough Solution"

Ref  - Link




Good one, 
We can become better writers with ChatGPT
  • Knowledge pointers
  • Blending creative thought 
  • Add your own perspective for the insight
  • #Google democratized information. With #ChatGPT #Reasoning / #knowledge / #Facts is getting democratized. 
  • Organisational-level risk taking involved in building GPT3 - Brand Impact
  • Build systems that appear to have intelligence when interacted with.
Keep Exploring!!!

January 15, 2023

GPT as Moral Science Teacher

Give me ten reasons why astrology is bad ?

  • Astrology is not based on scientific evidence and is therefore not reliable.
  • It relies on the assumption that the positions of the stars and planets at the time of a person’s birth can predict their future.
  • It can lead to people making decisions based on inaccurate information.
  • It can lead to people relying too heavily on astrological predictions rather than making their own decisions.
  • It can lead to people believing in superstitions and other unfounded beliefs.
  • It can lead to people making decisions based on fear rather than logic.
  • It can lead to people making decisions based on false hope rather than reality.
  • It can lead to people making decisions without considering the consequences.
  • It can lead to people believing in false promises and false expectations.
  • It can lead to people believing in false prophecies and false predictions.

Give me ten reasons why religion has not solved war and poverty.

  • Religion has been used as a tool to justify war and oppression.
  • Religion has been used to divide people and create conflict.
  • Religious beliefs can be interpreted differently by different people, leading to disagreements and disputes.
  • Religion has been used to justify the exploitation of the poor and vulnerable.
  • Religious leaders have been known to use their power and influence to gain wealth and power.
  • Religious beliefs can be used to justify discrimination and inequality.
  • Religious beliefs can be used to create a sense of superiority and entitlement.
  • Religious beliefs can be used to create a sense of fear and hatred.
  • Religious beliefs can be used to create a sense of entitlement and privilege.
  • Religion has been used to create an “us vs. them” mentality, which can lead to violence and conflict.

Give me ten reason why educated people lack empathy ?

  • Lack of life experience.
  • Over-reliance on logic and reason.
  • Inability to relate to people from different backgrounds.
  • Difficulty understanding the feelings of others.
  • Unwillingness to put themselves in someone else’s shoes.
  • Preoccupation with intellectual pursuits.
  • Difficulty understanding the nuances of human relationships.
  • Inability to recognize the impact of their words and actions.
  • Difficulty connecting with people on an emotional level.
  • Unwillingness to take the time to understand someone else’s perspective.

Keep Excploring!!!

January 14, 2023

GPT to generate exam questions

Ten basic easy questions for students on computer vision

  • What is computer vision?
  • What are the main components of a computer vision system?
  • What are the main challenges in computer vision?
  • What are the main applications of computer vision?
  • What is image processing?
  • What is feature extraction?
  • What is object recognition?
  • What is image segmentation?
  • What is pattern recognition?
  • What is deep learning and how is it used in computer vision?

Ten medium complex questions for students on computer vision

  • What is the difference between image classification and object detection?
  • What are the most common computer vision algorithms used for facial recognition?
  • How can deep learning be used to improve computer vision?
  • What is the difference between image segmentation and object recognition?
  • What are the advantages and disadvantages of using convolutional neural networks for computer vision?
  • How can computer vision be used to detect objects in a scene?
  • What are the challenges associated with using computer vision for autonomous vehicles?
  • What is the difference between supervised and unsupervised learning in computer vision?
  • What is the purpose of feature extraction in computer vision?
  • How can computer vision be used to detect anomalies in images?
Keep Exploring!!!


January 13, 2023

ChatGPT about Life

Why life feels like insomnia 

Life can feel like insomnia because it can be difficult to find a sense of balance or peace in life. It can be hard to find a sense of purpose or direction, and it can be difficult to find the energy and motivation to get through the day. It can be hard to find a sense of rest and relaxation, and it can be hard to find a sense of joy and contentment. Insomnia can be a symptom of feeling overwhelmed and disconnected from life, and it can be a sign that something needs to change.

Why we always think about work after work

We often think about work after work because we are so used to the routine of our job that it can be difficult to switch off and relax. We may also be worried about unfinished tasks or upcoming deadlines, which can cause us to ruminate on our work even when we are not at the office. Additionally, our work may be a source of stress or anxiety, which can lead to intrusive thoughts about our job even when we are not actively working.

How to let go things you cannot control

1. Acknowledge that you cannot control the situation. Accept that you cannot control the outcome and that you cannot change the past.

2. Identify the emotions you are feeling. Allow yourself to feel these emotions without judgment.

3. Reframe the situation. Consider how the situation could be seen in a more positive light.

4. Take action. Find ways to take action that are within your control.

5. Practice self-care. Take time to do activities that bring you joy and relaxation.

6. Let go. When you are ready, let go of the situation and the emotions associated with it.

Keep Exploring!!!

GPT to Bridge Broken Relationships

Write a letter to a long time friend how you remember fond memories in 100 words

Dear [Friend],

It's been so long since we've seen each other, but I still remember all the fun times we had together. From all the late night talks to the silly jokes, I cherish all the memories we made. I remember the time we went to the beach and stayed up all night talking about our dreams and aspirations. Those were some of the best days of my life. 

I hope you're doing well and that we can get together soon. Until then, I'll keep all the memories close to my heart.

Love,

[Your Name]


Write a letter to reconsider breakup and how much you loved her 100 words ?

Dear [Name],

I am writing this letter to ask you to reconsider our breakup. I know it may seem like a long shot, but I want you to know how much I love and care for you. I think about you every day and I can’t help but feel like I’m missing something without you in my life. I want to make things work between us and I’m willing to do whatever it takes to make that happen. Please give me another chance and let me prove to you how much I love you.

Sincerely,

[Your Name]


Write a letter to express anger and forgiveness to girl friend in 100 words ?:

Dear [Name],

I am writing this letter to express my anger and forgiveness towards you. I am angry because you have been lying to me and I feel betrayed. I understand that you may have had your reasons for doing so, but I am still hurt.

At the same time, I want to forgive you. I know that you are sorry and I want to move past this. I want to trust you again and I hope you can prove to me that I can.

I hope we can find a way to rebuild our relationship and move forward.

Sincerely,

[Name]


Keep Exploring!!

January 11, 2023

GPT as Manager

How to measure competency for remote workers

  • Set Clear Expectations: Establishing clear expectations for remote workers is essential for measuring competency. This includes setting expectations for the quality of work, deadlines, communication, and other job-related tasks.
  • Track Performance: Tracking performance is an important way to measure competency for remote workers. This can be done by tracking the number of tasks completed, the quality of work, and the timeliness of work.
  • Monitor Communication: Monitoring communication is another way to measure competency for remote workers. This can be done by tracking the frequency and quality of communication between the remote worker and their manager.
  • Provide Feedback: Providing feedback is an important way to measure competency

How to give feedback to poor-performing employee but feels competent:

  • Start by acknowledging the employee's efforts and hard work. Let them know that you recognize their efforts and appreciate them.
  • Explain the areas where improvement is needed. Be specific and provide examples of what needs to be improved.
  • Offer support and resources. Let the employee know that you are willing to help them improve their performance.
  • Set goals and expectations. Make sure that the employee understands what is expected of them and what the consequences are if they do not meet those expectations.
  • Provide feedback regularly. Make sure to provide regular feedback and encouragement to the employee so they know they are on the right track.
  • Be positive and encouraging. Let the employee know

How to give feedback to no follow-up employee in 50 words:

Focus on the behavior, not the person. Be specific and provide examples. Offer solutions and provide support. Encourage open communication and ask questions. Be constructive and provide clear expectations.

What is difference between communication vs competency, How to spot access in employee

Communication vs Competency:

  • Communication is the exchange of information between two or more people. It is the process of conveying messages, ideas, and feelings to others. Communication is a key skill in any workplace, as it helps to ensure that tasks are completed efficiently and effectively.
  • Competency is the ability to perform a task or job to a certain standard. It is the combination of knowledge, skills, and abilities that an individual needs to be successful in their job. Competency is often measured through assessments, interviews, and other evaluation methods.

Keep Exploring!!!

GPT as a Psychiatrist

GPT as a Psychiatrist

give me some patience tips in 20 words:

  • Take deep breaths.
  • Count to 10.
  • Take a break.
  • Listen to calming music.
  • Practice mindfulness.
  • Exercise regularly.
  • Avoid stressful situations.
  • Prioritize tasks.
  • Break big tasks into smaller ones.
  • Set realistic goals.
  • Don't take on too much.
  • Don't be too hard on yourself.
  • Talk to a friend.
  • Practice positive self-talk.
  • Focus on the present.
  • Remind yourself why it's important.
  • Visualize success.
  • Find humor in the situation.

give me some depression recovery tips in 20 words:

  • Reach out for help.
  • Exercise regularly.
  • Eat a healthy diet.
  • Get enough sleep.
  • Talk to a therapist.
  • Avoid drugs and alcohol.
  • Spend time with friends.
  • Practice relaxation techniques.
  • Set realistic goals.
  • Take time for yourself.
  • Challenge negative thoughts.
  • Connect with nature.
  • Find a creative outlet.
  • Practice self-care.
  • Join a support group.
  • Volunteer in your community.
  • Practice mindfulness.
  • Avoid negative people.
  • Get out in the sun.
  • Focus on the present

give me some optimism tips in 20 words:

  • Focus on the present moment.
  • Practice gratitude.
  • Find something to look forward to.
  • Take care of yourself.
  • Surround yourself with positive people.
  • Take time to relax.
  • Exercise regularly.
  • Set achievable goals.
  • Challenge negative thoughts.
  • Live in the present.
  • Spend time outdoors.
  • Help others.
  • Smile often.
  • Listen to uplifting music.
  • Find humor in life.
  • Take time to reflect.
  • Practice mindfulness.
  • Celebrate small successes.
  • Connect with nature.
  • Believe in yourself

give me some negotiation tips in 20 words:

  • Listen actively and be open to compromise.
  • Do your research and be prepared.
  • Be confident and assertive.
  • Focus on interests, not positions.
  • Ask questions to understand the other side.
  • Make the first offer.
  • Set deadlines and stick to them.
  • Be patient and don't rush.
  • Avoid making threats.
  • Be flexible and creative.
  • Take time to think and reflect.
  • Be clear and concise.
  • Respect the other party.
  • Stay calm and professional.
  • Don't take things personally.
  • Use objective criteria to evaluate.

give me some burnout  handling tips in 20 words:

  • Take breaks and get enough sleep.
  • Prioritize tasks and set realistic goals.
  • Exercise regularly and eat healthily.
  • Practice mindfulness and relaxation techniques.
  • Talk to a friend or professional for support.
  • Set boundaries and learn to say no.
  • Identify stressors and find ways to manage them.
  • Make time for leisure activities and hobbies.
  • Avoid multitasking and focus on one task at a time.
  • Break large tasks into smaller, manageable chunks.

give me some anger handling tips in 20 words:

  • Take deep breaths.
  • Count to 10.
  • Talk to a friend.
  • Exercise or go for a walk.
  • Listen to calming music.
  • Write down your feelings.
  • Practice mindfulness.
  • Visualize a calming place.
  • Take a break from the situation.
  • Use humor to diffuse anger.
  • Identify the source of your anger.
  • Focus on the positive.
  • Talk to a therapist.
  • Practice relaxation techniques.
  • Avoid unhealthy coping mechanisms.
  • Challenge angry thoughts.
  • Take a time-out.
  • Find a creative outlet.

give me some frustration handling tips in 20 words:

  • Take a deep breath and count to 10.
  • Talk to a friend or family member.
  • Take a break and do something calming.
  • Write down your thoughts and feelings.
  • Exercise or go for a walk.
  • Listen to music or meditate.
  • Break down the problem into smaller parts.
  • Identify the source of your frustration.
  • Ask for help or advice.
  • Focus on the solution, not the problem.
  • Remind yourself that this too shall pass.
  • Practice positive self-talk.
  • Find humor in the situation.
  • Make a plan of action.
  • Take responsibility

How to be emotionally detached when you have no choice to be with someone:

  • Acknowledge your feelings. Accept that you have emotions and that it is normal to feel them. Don’t try to suppress or ignore them.
  • Create boundaries. Decide what you are and are not willing to do in order to maintain emotional detachment.
  • Practice self-care. Make sure to take care of yourself and your needs. This will help to keep your emotions in check.
  • Avoid triggers. Know what triggers your emotions and try to avoid them.
  • Stay focused on the present. Don’t let your mind wander to the past or future. Focus on the present moment and what is happening right now.
  • Practice mindfulness

How to let go anger when you cannot express and avoid triggers

  • Acknowledge your anger: It is important to recognize and accept your anger. Acknowledge that it is a normal emotion and that it is okay to feel it.
  • Identify the source of your anger: Take some time to think about what is making you angry. Is it a person, a situation, or something else?
  • Express your feelings: Writing down your thoughts and feelings can be a great way to express your anger without having to confront someone or lash out.
  • Take a break: If you feel like you are getting too angry, take a break from the situation or person that is triggering your anger.
  • Practice relaxation techniques: Deep breathing, meditation

How to avoid burn down emotional stress

  • Take regular breaks: Taking regular breaks throughout the day can help you to reduce stress and emotional burnout.
  • Practice mindfulness: Mindfulness is a great way to help manage stress and emotional burnout. It can help you to become more aware of your thoughts and feelings and to be more present in the moment.
  • Get enough sleep: Getting enough sleep is essential for managing stress and emotional burnout. Aim for 7-9 hours of sleep each night.
  • Exercise regularly: Exercise is a great way to reduce stress and emotional burnout. Aim for at least 30 minutes of exercise each day.
  • Eat a healthy diet: Eating a healthy diet can help to reduce stress

Keep Learning!!!

January 10, 2023

GPT as Doctor

 GPT as Doctor 

Question #1 - prescribe me a tablet for fever in 20 words 

Ibuprofen, Acetaminophen, or Aspirin are all good choices for treating fever.

Question #2 - prescribe me a tablet for gastric issue in 20 words 

Omeprazole 20mg tablet once daily before meals.

Question #3 - prescribe me a tablet for cholestrol in 20 words 

Atorvastatin, a cholesterol-lowering medication, is recommended.

Question #4 - prescribe me a tablet for chest burn in 20 words 

Omeprazole 20mg tablet twice daily for relief of chest burn.

Question #5 - prescribe me a tablet for stomach worm in 20 words 

Albendazole 400mg tablet, taken twice daily for three days.

Question #6 - prescribe me a tablet for headache in 20 words 

Ibuprofen 200mg tablet is recommended for headache relief.

Question #7 - prescribe me a tablet for giddiness in 20 words 

The tablet prescribed is meclizine. It helps reduce giddiness and motion sickness.

Keep Querying!!!

January 08, 2023

ChatGPT Notes - Tech Perspectives

Paper - Link

Ref Link 

  • Label output of GPT
  • Apply human feedback
  • SFT - Supervised Finetune model
  • Rank outputs

Label Approach

  • Plain: We simply ask the labelers to come up with an arbitrary task, while ensuring thetasks had sufficient diversity.
  • Few-shot: We ask the labelers to come up with an instruction, and multiple query/responsepairs for that instruction.
  • User-based: We had a number of use cases stated in waitlist applications to the OpenAIAPI. We asked labelers to come up with prompts corresponding to these use cases.

  • sequence of indices feeds into a Transformer
  • probability distribution over the next index in the sequence comes out
  • clever with batching (both across examples and over sequence length) for efficiency.
Key params
  • GPT-1-like: 12 layers, 12 heads, d_model 768 (125M)
  • GPT-3: 96 layers, 96 heads, with d_model of 12,288 (175B parameters).
  • feedforward layer four times the size of the bottleneck layer, dff = 4 ∗ dmodel
  • GPT refers to a family of models which includes ChatGPT. text-davinci-003 is the model trained almost the same way as ChatGPT except it is not tuned for dialogue. We can use text-davinci-003 through OpenAI api today. There is a cost based on usage we need to factor when building applications.
  • This could be a combination of factors - one the attention mechanism helps a model to focus on the appropriate parts of the sentence for context. Also the inclusion of code in training corpus may have a role in its ability to remember the tokens mentioned in the beginning of a dialog when answering a question that comes much later. For instance code completion requires model to complete a braces that marks end of a code block or remember to use a global variable that was mentioned earlier.
  • There is no middleware - the entire context is present in the input token sequence that could be as long as 2048–4096 tokens
Ref - Link



  • The encoder takes the input and encodes it into a fixed-length vector. 
  • The decoder takes that vector and decodes it into the output sequence. 
  • Transformers use multi-headed attention, which is a parallel computation of a specific attention function called scaled dot-product attention. 

  • GPT Competitors
  • PEER by Meta AI
  • LaMDA by Google AI 
  • PaLM by Google AI
  • Computing the Unnormalized Attention Weights
  • Computing the Attention Scores
  • Multi-Head Attention
  • Generative: A GPT generates text.
  • Pre-trained: A GPT is trained on lots of text from books, the internet, etc ...
  • Transformer: A GPT is a decoder-only transformer neural network
At a high level, the GPT architecture has three sections:
  • Text + positional embeddings
  • A transformer decoder stack
  • A projection to vocab step
  • Take a bunch of text blocks and feed them to the OpenAI embeddings API
  • Find the most similar vectors among my notes
Good Read - GAN 
  • 𝐈𝐦𝐩𝐫𝐨𝐯𝐞 𝐩𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐯𝐢𝐭𝐲 𝐚𝐧𝐝 𝐩𝐫𝐨𝐜𝐞𝐬𝐬 𝐞𝐟𝐟𝐢𝐜𝐢𝐞𝐧𝐜𝐲.
  • 𝐎𝐩𝐭𝐢𝐦𝐢𝐳𝐞 𝐯𝐚𝐥𝐮𝐞 𝐜𝐡𝐚𝐢𝐧𝐬.
  • 𝐑𝐞𝐝𝐞𝐟𝐢𝐧𝐞 𝐭𝐡𝐞 𝐞𝐧𝐭𝐢𝐫𝐞 𝐞𝐜𝐨𝐬𝐲𝐬𝐭𝐞𝐦.
Keep Exploring!!!

January 06, 2023

Is GPT LLM going to be the next Alexa or Google?

The latest addition to the GPT-3 model family: text-davinci-003. This model builds on top of our previous InstructGPT models. Some questions and the answers I got. Let me know how relevant the answers are. I felt in a matter of few seconds these answers are very very good.

What is difference between conditional random field and naive bayes in 100 words

  • Conditional Random Fields (CRFs) are a type of probabilistic graphical model that are used to model sequential data. 
  • Unlike Naive Bayes, which assumes that all features are independent of each other, CRFs take into account the dependencies between features. 
  • This allows them to capture more complex relationships between the features, which can result in more accurate predictions. 
  • CRFs also allow for the incorporation of prior knowledge into the model, which can further improve the accuracy of the predictions.
  • In contrast, Naive Bayes is a simpler model that assumes all features are independent of each other, and is typically used for classification tasks.

Explain why their is inequality in this world in 100 words ?

Inequality in this world exists due to a variety of factors, including unequal access to resources, education, and opportunities. Inequalities in wealth, power, and privilege are often based on gender, race, ethnicity, and other social identities. These disparities are perpetuated by systems of oppression and discrimination, which can be seen in the workplace, in education, in healthcare, and in other areas of life. Inequality is also perpetuated by unequal access to resources and opportunities, which can lead to poverty, lack of education, and other forms of marginalization. Inequality is a complex issue that requires concerted efforts to address and eliminate.

Question - Explain why productivity is less in software job in 100 words ?

Answer - Software jobs are often complex and require a lot of problem solving and creative thinking. This can lead to a slower pace of work, as it takes time to come up with solutions and troubleshoot issues. Additionally, software jobs often require a lot of collaboration between team members, which can slow down the pace of work. Additionally, software jobs often require a lot of testing and debugging, which can take a lot of time and slow down the pace of work. Finally, software jobs often require a lot of documentation, which can also slow down the pace of work. All of these factors can lead to lower productivity in software jobs.

Explain how to grow as senior engineer in 100 words?

1. Develop a strong technical foundation: Focus on building a strong technical foundation by learning the fundamentals of software engineering, such as data structures, algorithms, and design patterns.

2. Learn new technologies: Stay up to date with the latest technologies and trends in the industry.

3. Network: Attend conferences, meetups, and other networking events to stay connected with the tech community.

4. Mentor others: Mentoring junior engineers is a great way to hone your skills and share your knowledge.

5. Take on challenging projects: Tackle complex projects that will push your skills to the limit.

6. Invest in yourself: Take the time to invest in yourself by reading books, taking courses, and

What questions I should ask my manager in my next one-to-one discussion in 100 words?

1. What do you think are my strongest skills and how can I use them to benefit the team?

2. What do you think I can do to improve my performance?

3. What do you think are the biggest challenges facing the team and how can I help?

4. What do you think I should focus on in the next few months?

5. How can I better collaborate with other team members?

6. What do you think I should do to develop my skills and knowledge?

7. What do you think are the most important goals for the team and how can I help reach them?

8. What do you think are the most important values of the team and how can I help uphold them?

What is difference between markov is hidden markov model in 50 words ?

Markov models are probabilistic models that assume that the probability of a future state depends only on the current state. Hidden Markov Models (HMMs) are similar to Markov models, but they assume that the underlying process is hidden, and the observed data is a result of the hidden process. HMMs are used to model sequences of observations, such as speech or text.

what is difference between emission vs transition probability in 50 words

Emission probability is the probability of a given state emitting a certain observation. Transition probability is the probability of transitioning from one state to another. Emission probability is used to calculate the probability of a given observation given a state, while transition probability is used to calculate the probability of transitioning from one state to another.

what is difference between multiarmed bandit vs markov model in 50 words

Multiarmed bandit algorithms are used to optimize decisions in a situation where there is a trade-off between exploration and exploitation. They are used to maximize the expected reward over a finite number of trials. Markov models are used to model a system where the future state is only dependent on the current state. They are used to predict the probability of future states given the current state.

Why neural networks are non convex in 50 words

Neural networks are non-convex because they contain multiple layers of non-linear functions, which can cause the optimization problem to have multiple local minima and saddle points, making it difficult to find the global optimum.

What is relationship between backpropagation and chain rule derivative in 100 words

Backpropagation is an algorithm used to train neural networks. It is based on the chain rule derivative, which is a method of calculating the derivative of a composite function. The chain rule states that the derivative of a composite function can be calculated by multiplying the derivatives of the individual functions. Backpropagation uses the chain rule to calculate the derivatives of the weights in the neural network. This is done by calculating the derivative of the error with respect to each weight in the network. The derivatives are then used to update the weights, which allows the network to learn. In summary, backpropagation is an algorithm that uses the chain rule derivative to train neural networks.

Playground Ref - Link

There are many domains and aspects. I was trying to ask some questions where I can feel like connecting with answers/opinions. These answers can be translated with Neural Machine Translation and can serve as a go-to Alexa. However impressive but factual information, relevance, and correctness are still a challenge. How we detect/filter false information.

ChatGPT + Google, ChatGPT + Bing. Any combination will really help to improve on relevance / better hybrid results.

The answers it generated I liked it much. I would give it 9/10 if I have to correct the answers/correctness

Keep Exploring!!!

GPT Text Examples

 


Keep Exploring!!!