Fine-tuning LLaMA 2 interference: a comparative study of language implementations for optimal efficiency
Synergy University(协同大学);BGC Trust University(BGC信托大学);Chittagong University of Engineering and Technology(吉大港工程技术大学);Samarkand State University(撒马尔罕国立大学);Military Institute of Science and Technology (MIST)(科技军事学院);Sonargaon University(索纳冈大学)
本文提出了一项旨在优化 Llama2 推理的比较研究,Llama2 推理是机器学习和自然语言处理(NLP)的一个关键方面。我们评估了多种编程语言和框架,包括 TensorFlow、PyTorch、Python、Mojo、C++ 和 Java,并通过广泛的基准测试分析它们在速度、内存消耗和实现易用性方面的表现。文中突出了每种方法的优势与局限,并提出了针对并行处理和硬件利用的优化策略。此外,我们研究了 Mojo SDK,这是一个专为 Apple Silicon 上的大语言模型(LLM)推理而设计的新型框架,并将其性能与 C、C++、Rust、Zig、Go 和 Julia 的实现进行了基准对比。我们在 Apple M1 Max 上进行的实验表明,Mojo SDK 具有有竞争力的性能、易用性以及无缝的 Python 兼容性,使其成为在 Apple Silicon 上进行 LLM 推理的有力替代方案。我们还讨论了在资源受限硬件上部署 LLM 的更广泛影响,并指出了未来研究的潜在方向。
英文摘要:
This paper presents a comparative study aimed at optimizing Llama2 inference, a critical aspect of machine learning and natural language processing (NLP). We evaluate various programming languages and frameworks, including TensorFlow, PyTorch, Python, Mojo, C++, and Java, analyzing their performance in terms of speed, memory consumption, and ease of implementation through extensive benchmarking. Strengths and limitations of each approach are highlighted, along with proposed optimization strategies for parallel processing and hardware utilization. Furthermore, we investigate the Mojo SDK, a novel framework designed for large language model (LLM) inference on Apple Silicon, benchmarking its performance against implementations in C, C++, Rust, Zig, Go, and Julia. Our experiments, conducted on an Apple M1 Max, demonstrate Mojo SDK's competitive performance, ease of use, and seamless Python compatibility, positioning it as a strong alternative for LLM inference on Apple Silicon. We also discuss broader implications for LLM deployment on resource-constrained hardware and identify potential directions for future research.
Zero-Shot End-to-End Relation Extraction in Chinese: A Comparative Study of Gemini, LLaMA and ChatGPT
University of Amsterdam(阿姆斯特丹大学);Johns Hopkins University(约翰斯·霍普金斯大学);University of California San Diego(加利福尼亚大学圣迭戈分校);Simon Fraser University(西蒙菲莎大学);Northeastern University(东北大学)
Parameter-Efficient Fine-Tuning for Low-Resource Languages: A Comparative Study of LLMs for Bengali Hate Speech Detection
Department of Computer Science and Engineering(计算机科学与工程系);University of Rajshahi(拉贾沙希大学);College of Engineering and Computer Sciences(工程与计算机科学学院);Marshall University(马歇尔大学)
MedDoc-Bot: A Chat Tool for Comparative Analysis of Large Language Models in the Context of the Pediatric Hypertension Guideline
Peter L. Reichertz Institute for Medical Informatics of TU Braunschweig and Hannover Medical School(布伦瑞克工业大学与汉诺威医学院Peter L. Reichertz医学信息学研究所);Hannover Medical School(汉诺威医学院)
Optimizing Medical Question-Answering Systems: A Comparative Study of Fine-Tuned and Zero-Shot Large Language Models with RAG Framework
Department of Electrical Engineering;Computer Science University of Toledo Toledo, USA;Institute of Mathematical Sciences Claremont Graduate University Claremont, USA;Department of Bioengineering University of Toledo Toledo, USA;Department of Computer Science Bowling Green State University Bowling Green, USA
Is Open-Source There Yet? A Comparative Study on Commercial and Open-Source LLMs in Their Ability to Label Chest X-Ray Reports
Athinoula A. Martinos Center for Biomedical Imaging, Massachusetts General Hospital and Harvard Medical School(麻省总医院与哈佛医学院 Athinoula A. Martinos 生物医学成像中心);Charité - Universitätsmedizin Berlin(柏林夏里特医学院);Dana-Farber Cancer Institute(丹娜法伯癌症研究院)
A Comparative Study of Student Perspectives on Technical Writing Feedback Quality: Evaluating LLMs, SLMs, and Humans in Computer Science Topics
McMaster University(麦斯特大学);Department of Computer Science, University of Toronto(多伦多大学计算机科学系);Research Institute for the Study of University Pedagogy, University of Toronto Mississauga(多伦多大学密西根分校大学教学研究学院);Department of Mathematical and Computational Sciences, University of Toronto Mississauga(多伦多大学密西根分校数学与计算科学系)
Faculty of Informatics(信息学系);Information Technologies, Slovak University of Technology in Bratislava(信息技术,斯洛伐克技术大学布拉迪斯拉发分校);Centre for Machine Learning, University of Southern Denmark(机器学习中心,丹麦南部大学)
Evaluating Large Language Models on the Spanish Medical Intern Resident (MIR) Examination 2024/2025:A Comparative Analysis of Clinical Reasoning and Knowledge Application
Evaluating Multimodal Large Language Models on Educational Textbook Question Answering
Faculty of Computing and Information Technology(计算与信息科技学院);King Abdulaziz University(阿卜杜勒阿齐兹大学);FAST School of Computing(快速计算学院);National University of Computer and Emerging Sciences(国家计算机与新兴科学大学);School of Computing(计算学院);Macquarie University(麦考瑞大学);Center of Research Excellence in AI and Data Science(人工智能与数据科学卓越研究中心)
The Critical Role of Model Selection in Causal Inference: A Comparative Analysis of Classification Models within the InferBERT Framework for Pharmacovigilance
Department of Stochastics, Institute of Mathematics, Budapest University of Technology and Economics(布达佩斯技术与经济大学数学研究所随机学系);Institute of Biostatistics and Network Science, Semmelweis University(塞梅维什大学生物统计学与网络科学研究所);Department of Computer Science, University of Warwick(华威大学计算机科学系)