Inclusion Criteria:  In order to be eligible for participation in this trial, the patient must meet all the following criteria:  Part 1 only - metastatic or locally advanced solid tumor malignancies positive for KRAS G12C that has progressed on, is refractory to, intolerant to, or for which there is no curative standard of care therapy.  Part 2 only - metastatic or locally advanced KRAS G12C NSCLC for patients for whom there is no curative standard of care therapy.  Measurable disease with at least 1 lesion amenable to response assessment per RECIST 1.1. Demonstrate adequate organ function as defined below. All screening laboratories should be performed within 14 days of treatment initiation. Has a performance status of 0-2 on the ECOG Performance scale. Life expectancy more than12 weeks at baseline. Women of childbearing potential must have negative serum or urine pregnancy test within 72 hours prior to receiving the first study drug administration. If the urine test is positive or cannot be confirmed as negative, a serum pregnancy test will be required. For women of childbearing potential, must be willing to use an adequate method of contraception from 30 days prior to the first study drug administration and 120 days following last day study drug administration. Male patients of childbearing potential must be surgically sterile, or must agree to use adequate method of contraception during the study and at least 120 days following the last day of study drug administration. Age more than18 years at screening. Able and willing to provide written informed consent and to follow study instructions.  Exclusion Criteria:  Patients are excluded from the study if any of the following criteria apply:  The patient will be excluded from participating in the trial if meet any of the following:  Patient has disease that is suitable for therapy administered with curative intent. Subjects who have received prior treatment with KRAS G12C targeted agents. Subjects who have received 4 or more lines of prior therapy.  The patient will be excluded from participating in the trial if meet any of the following:  Patient has disease that is suitable for therapy administered with curative intent. Subjects who have received prior treatment with KRAS G12C targeted agents or pan-KRAS inhibitors. Subjects who have received 4 or more lines of prior therapy. Central nervous system (CNS) involvement with tumor. Any concurrent chemotherapy, immunotherapy, or biologic or hormonal therapy for cancer treatment. Unresolved toxicities from prior therapy, defined as having not resolved to NCI CTCAE v.5.0 Grade 0 or 1, with exception of endocrinopathies from prior therapy and successfully treated (such as hypothyroidism), as well as alopecia and vitiligo. Patient has an active infection requiring systemic therapy. Patients who have known active HIV, Hepatitis or Hepatitis or active COVID-19 infection. (Patients who have been vaccinated against Hepatitis B and who are positive only for the Hepatitis B surface antibody are permitted to participate in the study). Subjects who are positive for HIV or hepatitis B or C virus must be tested for and have an undetectable viral load.  Patients with unstable/inadequate cardiac function:  New York Heart Association Class 3 or 4 congestive heart failure, Uncontrolled hypertension, Acute coronary syndrome within 6 months, Clinically significant cardiac arrhythmia, Mean QTC interval corrected for heart rate >500ms.  Patient has a history of interstitial lung disease. Current active additional malignancy that is progressing or requires active treatment. Exceptions include basal cell carcinoma of the skin, squamous cell carcinoma of the skin that has undergone potentially curative therapy or in situ cervical cancer. Participation in another clinical trial of an investigational agent within 30 days of screening. Patient has known psychiatric, substance abuse or other disorders that would interfere with cooperation with the requirements of the trial, in the opinion of the investigator. Patients who are pregnant or breastfeeding, or expecting to conceive within the projected duration of the trial, starting with the screening visit through 120 days after the last dose of trial treatment.