diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2023-12-15 19:29:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 19:29:03 -0600 |
commit | e12cbfd73b72ead1c38b2577947e62f8e18b02ae (patch) | |
tree | 6f350847d0ba5aba7f85342365efee05387ae7a1 | |
parent | 30a958e5dd6152da0d9e4cf5ce338bd2dd6a0ec4 (diff) | |
download | candle-e12cbfd73b72ead1c38b2577947e62f8e18b02ae.tar.gz candle-e12cbfd73b72ead1c38b2577947e62f8e18b02ae.tar.bz2 candle-e12cbfd73b72ead1c38b2577947e62f8e18b02ae.zip |
Update the readme to mention mixtral. (#1443)
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | candle-examples/examples/quantized/README.md | 13 |
2 files changed, 15 insertions, 0 deletions
@@ -173,6 +173,7 @@ If you have an addition to this list, please submit a pull request. - StarCoder. - Phi 1, 1.5, and 2. - Mistral 7b v0.1. + - Mixtral 8x7b v0.1. - StableLM-3B-4E1T. - Replit-code-v1.5-3B. - Bert. @@ -182,6 +183,7 @@ If you have an addition to this list, please submit a pull request. - Mistral 7b, and 7b instruct. - Zephyr 7b a and b (Mistral based). - OpenChat 3.5 (Mistral based). + - Mixtral 8x7b. - Text to text. - T5 and its variants: FlanT5, UL2, MADLAD400 (translation), CoEdit (Grammar correction). - Marian MT (Machine Translation). diff --git a/candle-examples/examples/quantized/README.md b/candle-examples/examples/quantized/README.md index bed09243..8144bffe 100644 --- a/candle-examples/examples/quantized/README.md +++ b/candle-examples/examples/quantized/README.md @@ -26,6 +26,19 @@ cargo run --example quantized --release -- --prompt "The best thing about coding > The best thing about coding in rust is 1.) that I don’t need to worry about memory leaks, 2.) speed and 3.) my program will compile even on old machines. ``` +Using the mixtral sparse mixture of expert model: +```bash + +$ cargo run --example quantized --release -- --which mixtral --prompt "Lebesgue's integral is superior to Riemann's because " +> avx: true, neon: false, simd128: false, f16c: true +> temp: 0.80 repeat-penalty: 1.10 repeat-last-n: 64 +> loaded 995 tensors (26.44GB) in 0.03s +Lebesgue's integral is superior to Riemann's because 1. it is defined for a wider class of functions, those which are absolutely integrable; 2. the definition does not involve limits in two variables---one being computed before the other (which makes some computations more difficult); and 3. interchange of order of integration is easier to establish than with Riemann's integral. On the other hand, Lebesgue's integral applies only for bounded functions defined on finite intervals; it does not provide numerical values for improper integrals. The latter are best evaluated using Cauchy's limit definition. + +The reason $f(x) = x^2$ is discontinuous at the ends of its interval of definition, and Riemann's integral requires continuity on the whole of an open interval containing it (see our earlier post), sine no such function exists with this property, is that the endpoints are infinite in measure for Lebesgue's integral. + ``` + + ## Command-line flags Run with `--help` to see all options. |