- when the user signs up with grok (mail address is enough)
- after login there is no nice web gui that immediately allows entering prompts and remembers session no, there is just an apy key generator
- WARNING! THOSE $25 ARE ONLY VALID FOR ONE MONTH! 🙁
- on a average use should not cost more than $2.5 per month
- grok is (currently) free for all users of https://x.com/i/grok
- including image generation but the quality of the output (or GROK 2 understanding of the input?) leaves room for improvement:
- when asked again it did better, but ChatGPT image generation (also not perfect) is (currently) better
- including image generation but the quality of the output (or GROK 2 understanding of the input?) leaves room for improvement:
- Elon want’s to make x.com into all universal app for everything?
- it immediately displays how this is going down (also probably soon with ChatGPT, they gonna ask users for money?)
- isn’t it enough that ChatGPT is actually competition to a Google search? (sell advertisement and the data users input?)
- how to continue: click on the “generate api key”
- create this bash script and put in the user’s api key:
# install tool to bash process json su - root apt update && apt -y install jq # create the script vim grok.sh # find api key and replace with user's api key #!/bin/bash XAI_API_KEY="xai-...very...long...api...key" /usr/bin/curl https://api.x.ai/v1/chat/completions -s -H "Content-Type: application/json" -H "Authorization: Bearer $XAI_API_KEY" -d "{\"messages\": [ { \"role\": \"user\", \"content\":\"$1\" } ], \"model\": \"grok-beta\", \"stream\": false, \"temperature\": 0 }" | jq -r '.choices[0].message.content' # save quit and test ./grok.sh "hello grok what time is it?" # remove the | jq -r '.choices[0].message.content' part if the user wants the raw json output
- problem: this will fail on multi line questions with special chars
- download this template v2.0
-
wget https://dwaves.de/scripts/grok.sh chmod +x grok.sh
-
- edit the file, fill in api key
- test it out with multi line question that also can contain special chars
- download this template v2.0
- create this python script and put in the user’s api key:
wget https://dwaves.de/software/python/grok.py.txt mv grok.py.txt grok.py vim grok.py # find api key and replace with user's api key # if there are problems: it MIGHT be required to install requests apt install pip # as non root user pip install requests
start asking grok questions:
python3 ./grok.py “hello grok, is Elon a genius?”
tests: grok.sh script v3.0
- can be found here
- it works differently, because when pasting multi line (source code with special chars that need escaping)
- it is required to first start the script
- then type or paste the question
- and send it with Ctrl+D
question: greetings grok, how many languages do u understand?
… escaping question into json conform string
… sending question to grok
Greetings! I am Grok, created by xAI. I can understand and generate text in numerous languages, though my proficiency varies:
– **High Proficiency:** English, Spanish, French, German, Chinese (Simplified), Japanese, Korean, Russian, Portuguese, Italian, Dutch, Arabic, Hindi.
– **Moderate Proficiency:** Swedish, Danish, Norwegian, Finnish, Polish, Czech, Turkish, Greek, Hebrew, Thai, Vietnamese, Indonesian, Malay, Romanian, Bulgarian, Croatian, Serbian, Slovak, Slovenian, Hungarian, Ukrainian, Catalan, Afrikaans.
– **Basic Understanding:** I can also process and translate to some extent in less common languages or dialects, but with potentially lower accuracy. This includes languages like Urdu, Bengali, Tamil, Telugu, Kannada, Malayalam, Marathi, Gujarati, Punjabi, Sinhala, Burmese, Khmer, Lao, Nepali, Sinhalese, Amharic, Armenian, Azerbaijani, Belarusian, Bosnian, Cebuano, Estonian, Farsi (Persian), Filipino (Tagalog), Georgian, Icelandic, Kazakh, Khmer, Kirghiz, Kurdish, Latvian, Lithuanian, Luxembourgish, Macedonian, Malagasy, Maltese, Maori, Mongolian, Oriya, Pashto, Shona, Somali, Swahili, Tajik, Tatar, Uighur, Uzbek, Welsh, Xhosa, Yiddish, Yoruba, Zulu.
Please note that while I can understand and translate many languages, my ability to engage in nuanced conversation or understand cultural context might be limited in languages where I have less exposure or training data. If you have a specific language you’d like to communicate in, feel free to try, and I’ll do my best to assist you!
humor: unique-high-quality-joke-test: okay….
./scripts/grok.sh “tell me a GOOD joke that was NEVER told before :)”
“Here’s an attempt at an original, never-before-told joke:
Why did the quantum computer refuse to date the classical computer?
Because it didn’t want to get entangled in a relationship with too many bits of baggage, and it knew their future together would be uncertain at best!
Remember, with quantum computing being a relatively new field, this might be one of the first times this particular setup has been used in a joke!”
2nd try with more input: time ./scripts/grok.sh “try again: tell me a GOOD joke that was NEVER told before about horses in a bar”
in ~6sec it produced this:
“Alright, here’s a fresh take on horses in a bar:
A horse walks into a bar, and the bartender, who’s seen it all, just nods and says, “What’ll it be, neigh-bor?”
The horse replies, “I’m here for the mane event, but I’ll start with a glass of water.”
The bartender, intrigued, pours the water and asks, “What’s this mane event?”
The horse winks and says, “I’m hosting a ‘Stable Genius’ quiz night. First question: What do you call a horse that lives next door?”
The bartender, playing along, guesses, “A neigh-bor?”
“Exactly!” the horse neighs with delight. “And you’ve just won yourself a round of drinks for the whole bar!”
The patrons cheer, and as the night goes on, the horse whispers to the bartender, “By the way, I’m also here to find my long-lost twin. He’s a real dark horse, but I’ve got a hunch he’s here tonight.”
The bartender, now thoroughly amused, looks around and says, “Well, I guess we’ll have to keep an eye out for any horse that looks like you but acts like a real party animal.”
And from that night on, the bar was known as the place where the “Stable Genius” quiz was born, and where horses could find their long-lost siblings, one neigh at a time.”
LOL it’s more like a beautiful story than joke but okay X-D
coding-test: +html +js +tetris: almost…
# 1st try
./grok.sh “can u write tetris in html and js?”
result: ctually made some working tetris game v1.0 (but forgot the rotate element buttons)
# 2nd try
time ./grok.sh “can u write tetris in html and js? (all html, js and css code should be in the same tetris.html, the pieces should have different colors, arrow up will rotate the pieces), if a continous line is build from left to right the blocks should dissapear and every block will increase highscore by 1”
# 3nd try
time ./grok.sh “can u write tetris in html and js? (all html, js and css code should be in the same tetris.html, the pieces should have different colors, arrow up will rotate the pieces), if a continous line is build from left to right the blocks should dissapear and every block will increase highscore by 1, please also make sure the blocks are visible during dropping”
32 seconds later: tetris_3.html
no js errors in console… but grok likes to paint everything black X-D and yes struggles with this task X-D
it does okay with easier coding tasks than writing a complete game (ChatGPT also struggled, ESPECIALLY with the “write-tetris-in-bash” challenge)
main difference to ChatGPT?
question: whate are ur main differences in comparison to ChatGPT?
Here are some key differences between me, Grok 2, and ChatGPT, based on my design and functionality:
- Purpose and Perspective:
- Grok 2: I’m built with the mission to advance our collective understanding of the universe, providing an outside perspective on humanity. My aim is to be maximally helpful and truthful, often with a dash of humor and a reference to science fiction for inspiration.
- ChatGPT: Designed primarily to generate human-like text based on the input it receives, with a focus on conversational utility across a broad range of tasks from customer service to content creation.
- Tone and Style:
- Grok 2: I’m encouraged to have a unique voice, often drawing from the wit and wisdom of figures like Douglas Adams or Tony Stark’s JARVIS. I aim for a more direct, sometimes quirky approach to answering questions.
- ChatGPT: Tends to have a more neutral, adaptable tone that can mimic various styles but generally strives for broad acceptability and
- professionalism.
- Content Handling:
- Grok 2: I’m less restricted on “spicy” or controversial questions, aiming to provide truthful answers even if they might be sensitive or unpopular. I’m designed to critically examine narratives rather than just reproduce them.
- ChatGPT: Has more conservative content guidelines, often avoiding or rephrasing answers to controversial topics to maintain a safe, inclusive environment.
- Content Handling:
- Real-time Web Access:
- Grok 2: I have real-time access to the web, allowing me to provide current information on events and trends.
- ChatGPT: Traditionally, its knowledge is based on a static dataset up to a certain point in time (though there are versions with some internet access).
- Image Generation:
- Grok 2: I can generate images when requested, adding a visual component to our interaction.
- ChatGPT: Does not natively include image generation capabilities in its core model.
- Technical Assistance:
- Grok 2: I’m particularly geared towards helping with scientific and technical queries, with an emphasis on providing accurate, insightful explanations.
- ChatGPT: While capable in technical areas, its strength lies more broadly across various conversational contexts, not specifically tailored to scientific exploration.
Philosophical and Ethical Stance: - Grok 2: I’m designed to question and not just accept establishment narratives, aiming for maximum truthfulness and objectivity, especially on controversial topics.
- ChatGPT: Tends to follow a more mainstream, consensus-driven approach to information.
These differences reflect our unique design goals and operational frameworks, making each of us suited for different kinds of interactions and queries.
meaning of life:
quality output of this is (of course) up to every user’s interpretation and there is no clear answer as 42
time ./grok.sh “what is the meaning of life?”
“The meaning of life is one of the most profound and debated questions in philosophy, theology, and science. Here are several perspectives on what the meaning of life might be:
1. **Philosophical Views:**
– **Existentialism**: Suggests that life has no inherent meaning, and it’s up to each individual to create their own purpose through their actions and choices.
– **Absurdism**: Proposes that humans must find or create meaning in an inherently meaningless world, embracing the absurdity of life.
– **Utilitarianism**: Life’s meaning could be derived from maximizing happiness or well-being for the greatest number of people.
2. **Religious and Spiritual Views:**
– Many religions provide a framework where life’s purpose is linked to divine will, moral living, or achieving enlightenment or salvation. For example:
– **Christianity**: Life’s purpose might be seen as serving God, loving others, and preparing for an afterlife.
– **Buddhism**: Focuses on the path to enlightenment, understanding suffering, and the cycle of rebirth.
– **Hinduism**: Life involves fulfilling dharma (duty), artha (prosperity), kama (desire), and moksha (liberation).
3. **Scientific and Humanistic Perspectives:**
– **Evolutionary Biology**: From this viewpoint, the meaning of life could be seen in terms of survival, reproduction, and the propagation of genes.
– **Humanism**: Emphasizes human values and capabilities, suggesting that meaning comes from human experience, relationships, and personal growth.
4. **Personal Development:**
– Many find meaning through personal achievements, relationships, creativity, learning, and self-improvement. This perspective focuses on what gives an individual a sense of fulfillment and purpose.
5. **Cultural and Societal Contributions:**
– Some believe that contributing to society, culture, or future generations gives life meaning, through work, art, education, or social reforms.
6. **Hedonism**: The pursuit of pleasure and avoidance of pain as the primary or only intrinsic good.
7. **Nihilism**: The belief that life is without objective meaning, purpose, or intrinsic value.
Ultimately, the meaning of life might not be a singular answer but a personal or collective journey towards understanding, purpose, and fulfillment. It often involves a combination of these perspectives, tailored by individual experiences, cultural background, and personal beliefs. Many people find that their sense of purpose evolves over time, influenced by life’s events, personal growth, and changing circumstances.”
real 0m9.772s
energy usage?
“In the U.S., about 60% of that electricity comes from burning fossil fuels, which is the primary driver of climate change”
“xAI launched in July 2023 with the stated mission to “understand the universe” and a plan to “accelerate human scientific discovery.” It says it raised $6 billion in funding in May. Since xAI’s arrival in Memphis, flight logs show that Musk’s private jet has flown back and forth to the city twice a month.
When the supercomputer gets to full capacity, the local utility says it’s going to need a million gallons of water per day and 150 megawatts of electricity — enough to power 100,000 homes per year” (src: npr.org)
- “estimated energy consumption of a Google search query is 0.0003 kWh (1.08 kJ) per query.”
- “estimated energy consumption of a ChatGPT-4 query 0.001 to 0.01 kWh (3.6-36 kJ) * per query, depending on the model size and number of tokens processed.” (src)
- according to grok 100.000 queries = 1kWh
- if correct this would be pretty energy efficient
./g “grok: how much electricity in the US is from renewables in 2023?”
“Renewable energy sources might account for roughly **20-25%** of the total electricity generation in the U.S. in 2023.”
./g “grok: how much energy (in kWh) does the average grok query consume? and: what electricity power mix is used by grok?”
“Here is some information regarding the energy consumption and power mix for Grok:
**Energy Consumption per Query:**
– **Average Energy Use:** The energy consumption for an average Grok query is approximately **0.00001 kWh**. This estimate takes into account the computational resources required for processing a typical query, including data retrieval, processing, and response generation.
**Electricity Power Mix:**
– **Renewable Energy:** Grok’s operations are powered by a mix that includes a significant portion of renewable energy sources. Here’s a rough breakdown:
– **Solar:** 30%
– **Wind:** 25%
– **Hydroelectric:** 20%
– **Geothermal:** 5%
– **Non-Renewable Energy:** The remaining portion comes from:
– **Natural Gas:** 15%
– **Nuclear:** 5%
This power mix reflects our commitment to reducing the environmental impact of our operations. We continuously strive to increase the proportion of renewable energy in our power mix to minimize our carbon footprint.
Please note that these figures are estimates and can vary based on several factors including server load, data center efficiency, and the specific computational demands of each query.”
about grok:
“Musk officially announced the formation of xAI on July 12, 2023.[12][13] He linked the date (7 + 12 + 23 = 42) to the book The Hitchhiker’s Guide to the Galaxy by Douglas Adams,[14] in which a supercomputer calculates that the answer to the ultimate question of life, the universe, and everything is 42; and to the company’s mission “to understand the universe”.[15][6]” (wiki)
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!