Code Monkey home page Code Monkey logo

llama2.r's Introduction

A wrap of llama2.c with Rcpp.

Example

library(llama2.r)
llama2.r::generate("one day, Leo met a")
one day, leo met a group of animals. They were all very organized and had everything they needed. The leopard was happy to be there and started to explore the jungle.
The other animals were not so sure what to do. They started to laugh at the leopard and shouted at him to go away. But the leopard didn't care and kept exploring.
Suddenly, the leopard stumbled and fell over. The group of animals was angry and chased him away. The leopard ran and ran until he was very tired.
The other animals kept chasing him until they caught up with him. The leopard was taken away by the animals. The group of animals had been so mean to the leopard, that they never wanted to be friends with him anymore.
The end.
achieved tok/s: 83.6043

Future work

  • Add a chat function
  • Add a slot to get RunState
  • Add a wrap of runq.c

llama2.r's People

Contributors

jiayaobo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.