Skip to content

Commit b6da6b2

Browse files
authored
Docs (#6)
1 parent 613ff55 commit b6da6b2

File tree

2 files changed

+7
-52
lines changed

2 files changed

+7
-52
lines changed

docs/docs/guides/exporting-llama.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ sidebar_position: 2
66
In order to make the process of export as simple as possible for you, we created a script that runs a Docker container and exports the model.
77

88
## Steps to export Llama
9-
### 1. Create an Account:
9+
### 1. Create an Account
1010
Get a [HuggingFace](https://huggingface.co/) account. This will allow you to download needed files. You can also use the [official Llama website](https://www.llama.com/llama-downloads/).
1111

12-
### 2. Select a Model:
12+
### 2. Select a Model
1313
Pick the model that suits your needs. Before you download it, you'll need to accept a license. For best performance, we recommend using Spin-Quant or QLoRA versions of the model:
1414
- [Llama 3.2 3B](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct/tree/main/original)
1515
- [Llama 3.2 1B](https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct/tree/main/original)
@@ -18,16 +18,16 @@ Pick the model that suits your needs. Before you download it, you'll need to acc
1818
- [Llama 3.2 3B QLoRA](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct-QLORA_INT4_EO8/tree/main)
1919
- [Llama 3.2 1B QLoRA](https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct-QLORA_INT4_EO8/tree/main)
2020

21-
### 3. Download Files:
21+
### 3. Download Files
2222
Download the `consolidated.00.pth`, `params.json` and `tokenizer.model` files. If you can't see them, make sure to check the `original` directory.
2323

24-
### 4. Rename the Tokenizer File:
24+
### 4. Rename the Tokenizer File
2525
Rename the `tokenizer.model` file to `tokenizer.bin` as required by the library:
2626
```bash
2727
mv tokenizer.model tokenizer.bin
2828
```
2929

30-
### 5. Run the Export Script:
30+
### 5. Run the Export Script
3131
Navigate to the `llama_export` directory and run the following command:
3232
```bash
3333
./build_llama_binary.sh --model-path /path/to/consolidated.00.pth --params-path /path/to/params.json

docs/docusaurus.config.js

+2-47
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/*
2-
In swizzled components look for "SWM -" string to see our modifications
3-
*/
4-
51
const lightCodeTheme = require('./src/theme/CodeBlock/highlighting-light.js');
62
const darkCodeTheme = require('./src/theme/CodeBlock/highlighting-dark.js');
73
// @ts-check
@@ -36,8 +32,8 @@ const config = {
3632
theme: {
3733
customCss: require.resolve('./src/css/index.css'),
3834
},
39-
googleAnalytics: {
40-
trackingID: '...',
35+
gtag: {
36+
trackingID: 'G-TJND8QJM9P',
4137
anonymizeIP: true,
4238
},
4339
}),
@@ -85,47 +81,6 @@ const config = {
8581
indexName: 'react-native-executorch',
8682
},
8783
}),
88-
plugins: [
89-
// ...[
90-
// process.env.NODE_ENV === 'production' && '@docusaurus/plugin-debug',
91-
// ].filter(Boolean),
92-
// async function reanimatedDocusaurusPlugin(context, options) {
93-
// return {
94-
// name: 'react-native-reanimated/docusaurus-plugin',
95-
// configureWebpack(config, isServer, utils) {
96-
// const processMock = !isServer ? { process: { env: {} } } : {};
97-
98-
// const raf = require('raf');
99-
// raf.polyfill();
100-
101-
// return {
102-
// mergeStrategy: {
103-
// 'resolve.extensions': 'prepend',
104-
// },
105-
// plugins: [
106-
// new webpack.DefinePlugin({
107-
// ...processMock,
108-
// __DEV__: 'false',
109-
// setImmediate: () => {},
110-
// }),
111-
// ],
112-
// module: {
113-
// rules: [
114-
// {
115-
// test: /\.txt/,
116-
// type: 'asset/source',
117-
// },
118-
// ],
119-
// },
120-
// resolve: {
121-
// alias: { 'react-native$': 'react-native-web' },
122-
// extensions: ['.web.js', '...'],
123-
// },
124-
// };
125-
// },
126-
// };
127-
// },
128-
],
12984
};
13085

13186
module.exports = config;

0 commit comments

Comments
 (0)