I can install it using crosh?
- User
I can install it using crosh?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
I can install it using crosh?
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
You're asking about using the Chrome Shell (crosh) to install and run TinyLlama on your Chromebook. This is a more advanced approach, and it's possible, but quite challenging and limited due to the nature of crosh and the Chromebook's architecture.
Here's a breakdown of what you can do, the limitations, and the steps involved. Be warned: this is not for beginners and carries a risk of making your Chromebook unstable.
apt (in Linux). You'll be relying on apk (Alpine Package Keeper), which has a smaller repository.Open crosh:
Ctrl + Alt + T to open a crosh terminal.Enter Shell:
shell and press Enter. This gives you a more powerful shell.Update Package Lists:
apk update
Install Necessary Packages: This is where it gets tricky. You'll need to install tools to compile code and potentially Python.
apk add --no-cache git make gcc g++ python3 python3-pip
git: For cloning the llama.cpp repository.make: For compiling the code.gcc and g++: C/C++ compilers.python3 and python3-pip: For Python and package management (if needed).Clone llama.cpp:
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
Compile llama.cpp:
make
This might take a long time on your Celeron processor.
Download a Quantized TinyLlama Model (GGUF):
As before, download a GGUF version of TinyLlama from Hugging Face (e.g., tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf). You'll need to use wget or curl to download it directly to your crosh environment.
wget https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF/resolve/main/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf -O models/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf
(Make sure you create a models directory first: mkdir models)
Run Inference:
./main -m ./models/tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf --color -c 2048 --temp 0.7 --repeat_penalty 1.1 -n -1 -i -ins
apk Package Availability: The apk repository might not have all the dependencies you need.I am providing these instructions for informational purposes only. Attempting to run AI models in crosh is at your own risk. I am not responsible for any damage or instability caused to your Chromebook.
If you're not comfortable with the command line and potential risks, I strongly recommend using the web-based tools or enabling Linux (Beta) instead.