Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/misc/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Troubleshooting

The Bazel build system should install all necessary dependencies including `llvm` and `zig`. Issues can arise from conflicts with local toolchains.

## MacOS

Useful Bazel commands:

- `bazel fetch --force --configure`: this will refetch and configure local sandbox for external toolchains.
- `bazel clean --expunge`: this will remove all downloaded dependencies and start fresh.

Make sure that your MacOS is up to date. There is a known issue with `14.7`.

Verify the existance of the Xcode CLI developer tools: `xcode-select --install`.
Reinstall the CLT:

```bash
sudo rm -rf /Library/Developer/CommandLineTools && \
sudo xcode-select -r && \
sudo xcode-select --install
```
3 changes: 3 additions & 0 deletions docs/tutorials/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ bazel run -c opt //llama:OpenLLaMA-3B \
-- --prompt="Once upon a time,"
```

## Troubleshooting

If you run into trouble in the setup process, please check out the [Troubleshooting](../misc/troubleshooting.md) guide.

## Where to go next:

Expand Down