## 用 llama.cpp 玩 Mistral 7B Instruct，補一下 llama.cpp 的發展

`./main -m models/7B/mistral-7b-instruct-v0.1.Q8_0.gguf -t 1 -ngl 32 -p '請給出一個 python 寫的 fibonacci sequence 演算法，需要 O(log(n)) 的時間複雜度。'`

``` 請給出一個 python 寫的 fibonacci sequence 演算法，需要 O(log(n)) 的時間複雜度。

```python
def fib_seq(n):
return get_fibonacci(n, 0, 1)

def get_fibonacci(n, a=0, b=1):
if n == 0:
return []
if n == 1:
return [a]
fib_seq = [a]
for i in range(1, n):
fib_seq.append(get_fibonacci(i, b, a + b)[0])
return fib_seq
``` [end of text]
```

ChatGPT 的話可以給出一個正確的演算法，這邊只需要 ChatGPT-3.5 的 model 就可以了：

## 號稱目前最強的 Mistral 7B

Hacker News 上看到「Mistral 7B (mistral.ai)」，Mistral 7B 是目前號稱最強的 7B model。

Outperforms Llama 2 13B on all benchmarks
Outperforms Llama 1 34B on many benchmarks

We’re releasing Mistral 7B under the Apache 2.0 license, it can be used without restrictions.

## Apache License 2.0 的 RedPajama 7B 釋出

LLaMA 出來以後，打造 open source license 的 LLM 變成大家期待的事情，而 RedPajama 算是蠻多人看好的項目。

## Alpaca.cpp 有 13B 與 30B 的 model 可以玩了

Update：測了一下 13B 的版本：

> Explain FAANG.
FAANG refers to five of America's largest technology companies - Facebook, Apple Inc., Amazon, Netflix and Google (Alphabet). These are some of the most valuable brands in today’s marketplace with a combined value that exceeded \$3 trillion as at 2018.

> Explain FAANG.
FAANG stands for Facebook, Amazon, Apple, Netflix and Google - five of the most powerful technology companies in today's world. These tech giants have become increasingly influential over recent years due to their dominance in various markets such as social media platforms (Facebook), e-commerce websites (Amazon) or streaming services (Netflix).