Llama(一):Mac M1芯片运行Llama3

目录

安装Ollama for Mac

下载Llama 3模型

运行Llama3

试用Llama3

在命令行中使用Llama3


背景

本地环境:Mac M1,16GB内存

安装Ollama for Mac

官方地址

https://ollama.com/download/Ollama-darwin.zip

链接: 百度网盘 提取码: 8wqx 

下载Llama 3模型

ollama pull llama3

通过Ollama下载的Llama3是8B的,且是4-bit量化后的模型

模型大小4.7GB

Ollama:You should have at least 8 GB of RAM available to run the 7B models, 16 GB to run the 13B models, and 32 GB to run the 33B models.

运行Llama3

ollama run llama3

资源使用情况

NAME         	ID          	SIZE  	PROCESSOR	UNTIL
llama3:latest	365c0bd3c000	5.5 GB	100% GPU 	3 minutes from now

试用Llama3

在命令行中使用Llama3

常用命令如下

>>> /?
Available Commands:
  /set            Set session variables
  /show           Show model information
  /load <model>   Load a session or model
  /save <model>   Save your current session
  /clear          Clear session context
  /bye            Exit
  /?, /help       Help for a command
  /? shortcuts    Help for keyboard shortcuts

Use """ to begin a multi-line message.

>>> Send a message (/? for help)

对话

问题:Will China defeat America?

回答很流畅

>>> will China defeat America
I'm just an AI, not a prophet or a military strategist. However, I can provide some context and insights
on the current state of affairs.

China and the United States are two superpowers with significant economic, military, and technological
capabilities. While it's impossible to predict the outcome of future conflicts or competitions, we can
analyze some key aspects:

1. **Economic power**: China has surpassed the US as the world's largest economy in terms of purchasing
power parity (PPP). However, the US still holds a strong position in absolute terms.
2. **Military capabilities**: The US is currently the strongest military power globally, with a
significant advantage in areas like aircraft carriers, stealth technology, and nuclear capabilities. China
has been rapidly modernizing its military, but it still lags behind the US in many areas.
3. **Technology**: Both countries are investing heavily in emerging technologies like artificial
intelligence, quantum computing, and biotechnology. The US has an edge in some areas, such as AI research,
while China excels in certain sectors like 5G wireless networks and high-speed rail.
4. **Geopolitical alliances**: The US is a leader in international organizations like the UN and NATO,
with a strong network of allies. China has been expanding its global influence through the Belt and Road
Initiative (BRI) and other economic partnerships.

Considering these factors, it's unlikely that China will defeat America in a direct military conflict or a
comprehensive "winner-takes-all" scenario. However, there are several possible outcomes:

1. **Competition and cooperation**: The US and China might engage in a long-term competition for global
influence, with both sides seeking to outmaneuver each other while also cooperating on specific issues
like climate change, pandemics, or economic development.
2. **Regional rivalries**: China may focus on regional dominance, using its economic power and military capabilities to
shape the Asian landscape, while the US maintains its global presence through alliances and partnerships.
3. **Cyber warfare**: The two nations might engage in a cyber arms race, with each side trying to outdo the other in
terms of hacking capabilities, data theft, or disinformation campaigns.

In conclusion, it's unlikely that China will defeat America in a direct conflict, but both countries will continue to
compete and cooperate in various areas. The global landscape will likely be shaped by their interactions, alliances, and
technological advancements.

相关推荐

  1. 使用 vllm 运行 Llama3-8b-Instruct

    2024-06-05 21:02:03       13 阅读
  2. meta-llama/Meta-Llama-3-8B

    2024-06-05 21:02:03       13 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-06-05 21:02:03       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-05 21:02:03       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-05 21:02:03       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-05 21:02:03       18 阅读

热门阅读

  1. SpringMVC:获取请求数据

    2024-06-05 21:02:03       7 阅读
  2. k8s集群修改apiserver的ip地址

    2024-06-05 21:02:03       7 阅读
  3. LeetCode 每日一题 数学篇 LCR 182.动态口令

    2024-06-05 21:02:03       6 阅读
  4. 如何区分A类B类C类网络地址?

    2024-06-05 21:02:03       8 阅读
  5. Shell编程之免交互

    2024-06-05 21:02:03       9 阅读
  6. 深度解读chatGPT基本原理

    2024-06-05 21:02:03       7 阅读
  7. onnx模型转换到rknn脚本

    2024-06-05 21:02:03       5 阅读
  8. # SpringBoot 如何让指定的Bean先加载

    2024-06-05 21:02:03       8 阅读
  9. Linux: network: arp 导致问题一例

    2024-06-05 21:02:03       10 阅读