Free Imran Khan! Imran Khan has been left to languish in a Pakistani prison cell for over three years. Today in the House of Commons I presented a petition calling for his release, as well as the release of all political prisoners in Pakistan.
It's great to read about your journey towards AI. It's a great movitation for all of us that If you can do it in your 70s then everybody can do it.
#imrankhan#Ai
My leader @ImranKhanPTI sits in jail with his health in jeopardy. His imprisonment weighs on us every day. But I know him well enough to say this: He would want Pakistan's young people to keep building, to take on the world. Especially in AI. Especially now, without losing sight of the political struggle, which we will not abandon.
This thread is for them 🧵
—
Forced to stay away from my country gave me two benefits: More time and more passion. I chose not to waste either. This is a personal account:
It started with my need to transcribe my long speeches, some over thirty minutes, in mixed English and Urdu on YouTube (which gave a Hindi/Sanskrit transcript). The platforms available would do a bad job with the mix. So, I asked my coaches — ChatGPT, Claude & Gemini and I concluded to do it myself, locally, with Whisper’s large, medium & small models and other AI tools. This was completed in Dec ‘25
For the sake of open source and transparency, I am publishing it on GitHub.
https://t.co/yR9X32e819
In January ’26, I began building the Dr Arif Alvi AI Archive. An attempt to bring together everything I had said, written, read, and recorded across decades, and make it searchable, synthesizable, MINE.
I built it alone. No team. No budget. Just time, curiosity, and persistence.
It runs entirely on my enhanced laptop. My data never leaves it.
My AI agents ingest my writings/articles; thousands of books read and summarised; millions of words of archival material; my thousands of speeches on YouTube press conferences; thousands of talk show appearances since 2000 and clips on YouTube. All scraped from the net via APIs— indexed, and alive inside my local RAG (Retrieval Augmented Generation) system that answers back.
My 50,000+ tweets are searchable faster than X's own tools. Not just by keyword but semantically.
None of it leaves my computer or enters the public domain, remains private.
—
The local LLMs answer questions, draft research briefs, synthesize across all data. When I need to reach beyond my own archive, they augment from public LLMs — ChatGPT, Claude, DeepSeek, others.
I use the archive every day, updating it regularly. It has changed how I think and work.
—
Following are the layers of the stack — what I built is one-of-one. But what I built it from is available to every-one:
▶️ Ollama / Llama / Phi / Qwen — local LLMs running entirely on-device
▶️ Whisper — bilingual English-Urdu speech transcription
▶️ ChromaDB — vector memory across 70,000+ chunks
▶️ Sentence Transformers — semantic search across tweets, speeches, and archives
▶️ Streamlit — dashboard with dual modes: semantic search and AI research
▶️ Six LLM interfaces (ChatGPT, Claude, DeepSeek, Gemini, Perplexity, Copilot) for python scripts and for augmentation of local output
▶️ OpenClaw and GitHub — for code management
▶️VS Code — for scripts and code writing
None of them are mine. The COMPOSITION is mine.
—
I should tell you what it took to get here.
I started learning Python basics from online courses. I am not a programmer, but I reviewed and iterated over a million lines of scripts —learning, correcting, improving, understanding—just enough to keep going.
I had launched Pakistan's Presidential Initiative on Artificial Intelligence in 2019. I thought I understood AI but I took advanced courses anyway. There is always more to learn, and humility about ignorance is not a weakness. It is the only honest starting point.
—
There are tens of thousands of students, researchers, operators, lawyers, and doctors across Pakistan and the world, quietly trying to dabble in AI right now.
To them I would say: software writing is mostly done by machines today. You do not need to become a programmer. You need to understand enough to read, direct, correct and employ tools — like a symphony conductor, with an AI baton.
More than anything, pick a project. Something real, something yours.🔑 Scripts fill the architecture. Concrete fills the blueprint.
GET TO WORK
And do not move slowly. AI tools and agentic systems are changing every single day. What was remarkable yesterday is ordinary today. Sometimes the gap is hours, not months.
The people who stay ahead are not waiting to fully understand it before they begin.
THEY ARE ALREADY BUILDING.
—
Pakistan cannot afford to fall behind in this.
Not out of nostalgia for what Pakistan was, but out of economic and strategic urgency for what it must become — because our talented, hungry people can build anything when given the tools and the leadership.
This is for them.
START
ہمیں پتہ ہے عمران خان کی اس حالت کے پیچھے اصل مجرم کون ہے مگر سامنے تو حکومت ہی ہے۔ ہم حکومت سے پوچھیں گے یہ انکی زمہ داری ہے
اڈیالہ پنجاب حکومت کے حدود میں آتا ہے۔ عمران خان کی انکھ کی بینائی 85 چلی گئی ہے ہمیں اسکے زمہ دار کا بھی تعین کرنا ہوگا۔ اُسکو سزا دینی چاہیے۔ عمران خان کا علاج عمران خان کے معالج کے تجویز کردہ ڈاکٹرز سے کروانا چائے۔
وائس چیئرمین تحریک تحفظ آئین پاکستان و قائد حزبِ اختلاف سینیٹ سینٹر علامہ راجہ ناصر عباس
#SaveImranKhansEyesight
ہم حیران ہیں کہ جب رپورٹ میں بات سامنے آگئی کہ عمران خان کو مہینوں تکلیف کے باوجود صحت کی سہولت فراہم نہیں کی گئی۔۔ میڈیکل اٹینشن نہیں دی گئی ۔ جس وجہ سے عمران خان صاحب کی بینائی متاثر ہوگئی ۔ جن لوگوں کے زمہ تھا عمران خان کو سہولت صحت فراہم کرنا ۔ چیف جسٹس صاحب آپ نے انکے خلاف کوئی کارروائی کا حکم نہیں دیا۔ نہ انکے خلاف ایک لفظ بولا۔
وائس چیئرمین تحریک تحفظ آئین پاکستان مصطفی نواز
#SaveImranKhansEyesight
We strongly appeal to the United Nations and other international human rights organizations to take notice of the injustice being done to our father and to raise their voice for justice. @hrw@UNHumanRights
I just spent several days with @richardbranson and @sufisal (Dr. Salman Ahmed) discussing the dangerous detention of former PM @ImranKhanPTI in Pakistan. As a physician and friend of Pakistan, I have watched with pain and sadness at his deterioriting health status while a prisoner in round the clock solitary confinement. To make it worse, he has not been allowed reasonable visits from his own physician. His health status alone demands an immediate release to hospital or other good medical care before it is too late. What happened to Alexei Navalny in Russia's gulag cannot be allowed to happen to @ImranKhanPTI .
100% right, Richard. Imran Khan has been deposed, shot by a would be assassin, deprived of his rights, and stuck in solitary confinement on invented charges despite orders from the Supreme Court of Pakistan to free him. It is unconscionable that a democracy can act this way while the world stands idly by.
Days after the ICJ orders Israel to halt its military offensive in Rafah, the Israeli Government bombs displaced people living in tents. Innocent men, women & children dismembered and burnt alive.
Bear witness to the images and ask yourself, are you on the right side of history?
“Every Pakistani should study the Hamood ur Rahman Commission Report and get to know who was the true traitor, General Yahya Khan or Sheikh Mujibur Rahman.” - Founding Chairman PTI Imran Khan
#غدار_کون_تھا
مبینہ طور پر یہ سکول ٹیچر ہیں
کیا آئین پاکستان میں کہیں بھی ماورا عدالت
اس طرح کے ظلم کی اجازت ہے تو مطلع کریں اور نہیں تو ملک کے چیف جسٹس اور سربراہ کو قیامت کے دن ان مظالم کی قیمت ادا کرنی پڑے گی