Package: Rbebelm 0.3.6-0.1.0

Sounkou Mahamane Toure

Rbebelm: Native 'BebeLM', 'EmbeddingGemma', and 'ColBERT' CPU Backends for R

Provides focused R interfaces to the pure-Rust 'BebeLM' CPU inference library <https://github.com/maximecb/bebelm> and a native pure-Rust implementation of the retrieval-trained 'EmbeddingGemma' encoder <https://ai.google.dev/gemma/docs/embeddinggemma>, and a native profile for LiquidAI's retrieval-trained LFM2.5-'ColBERT' GGUF encoder. The package exposes GGUF model loading, tokenizer access, semantic text embeddings, late-interaction token vectors and MaxSim scoring, streaming generation events, persistent conversation agents, 'BebeLM' tool-call parsing, R tool dispatch, and Rust-thread async generation jobs. Loaded agents share model weights in process through Rust reference-counted handles, and GGUF files are mapped read-only so repeated loads of the same file can share physical pages through the operating-system page cache. Native libraries are built as runtime-selected CPU backends so portable R binaries can use scalar code by default and optimized SIMD backends when available.

Authors:Sounkou Mahamane Toure [aut, cre], Maxime Chevalier-Boisvert [cph], Hiroaki Yutani [cph], llama.cpp contributors [ctb, cph]

Rbebelm_0.3.6-0.1.0.tar.gz
Rbebelm_0.3.6-0.1.0.zip(r-4.7)Rbebelm_0.3.6-0.1.0.zip(r-4.6)Rbebelm_0.3.6-0.1.0.zip(r-4.5)
Rbebelm_0.3.6-0.1.0.tgz(r-4.6-x86_64)Rbebelm_0.3.6-0.1.0.tgz(r-4.6-arm64)Rbebelm_0.3.6-0.1.0.tgz(r-4.5-x86_64)Rbebelm_0.3.6-0.1.0.tgz(r-4.5-arm64)
Rbebelm_0.3.6-0.1.0.tar.gz(r-4.7-arm64)Rbebelm_0.3.6-0.1.0.tar.gz(r-4.7-x86_64)Rbebelm_0.3.6-0.1.0.tar.gz(r-4.6-arm64)Rbebelm_0.3.6-0.1.0.tar.gz(r-4.6-x86_64)
Rbebelm_0.3.6-0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
Rbebelm/json (API)

# Install 'Rbebelm' in R:
install.packages('Rbebelm', repos = c('https://rgenomicsetl.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sounkou-bioinfo/rbebelm/issues

On CRAN:

Conda:

local-llmrustsimdcargo

2.40 score 1 stars 84 exports 2 dependencies

Last updated from:690b70436c. Checks:8 OK, 5 NOTE. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK184
linux-devel-x86_64OK219
source / vignettesOK318
linux-release-arm64OK176
linux-release-x86_64OK175
macos-release-arm64OK189
macos-release-x86_64OK289
macos-oldrel-arm64NOTE161
macos-oldrel-x86_64NOTE366
windows-develNOTE230
windows-releaseNOTE198
windows-oldrelNOTE186
wasm-releaseOK168

Exports:bebel_agentbebel_agent_configurebebel_agent_generatebebel_agent_generate_asyncbebel_agent_infobebel_agent_runbebel_appendbebel_append_systembebel_append_tokensbebel_append_tool_resultbebel_append_userbebel_assistant_turnbebel_assistant_turn_asyncbebel_assistant_turn_tool_stopbebel_assistant_turn_tool_stop_asyncbebel_async_cancelbebel_async_collectbebel_async_eventsbebel_async_pollbebel_async_waitbebel_benchmark_generationbebel_chatbebel_chat_asyncbebel_clearbebel_detokenizebebel_event_handlerbebel_event_typesbebel_generatebebel_generate_asyncbebel_historybebel_model_loadbebel_parse_tool_callbebel_parse_tool_callsbebel_token_idsbebel_tokenizebebel_toolbebel_tool_schema_jsonbebel_transcriptBebelAgentBebelAgentConfigureOptionsBebelAgentOptionsBebelAgentRefBebelAgentRunOptionsBebelAsyncEventDrainOptionsBebelAsyncJobBebelAsyncJobRefBebelAsyncWaitOptionsBebelGenerationBenchmarkOptionsBebelGenerationOptionsBebelModelBebelModelLoadOptionsBebelModelRefBebelScalarTextBebelTokenizeOptionsBebelToolRefBebelToolSpeccolbert_embedding_idscolbert_embedding_vectorscolbert_embeddings_infocolbert_encode_documentcolbert_encode_querycolbert_maxsimcolbert_model_infocolbert_model_loadcolbert_rankColbertEmbeddingsColbertEmbeddingsRefColbertModelColbertModelLoadOptionsColbertModelRefembeddinggemma_embedembeddinggemma_embed_documentembeddinggemma_embed_queryembeddinggemma_model_infoembeddinggemma_model_loadembeddinggemma_tokenizeEmbeddingGemmaLoadOptionsEmbeddingGemmaModelEmbeddingGemmaModelRefEmbeddingGemmaOptionsrbebelm_backend_featuresrbebelm_backend_inforbebelm_cpuid_inforbebelm_set_backend

Dependencies:S7yyjsonr

Readme and manuals

Help Manual

Help pageTopics
Create a persistent BebeLM agentbebel_agent
Configure a BebeLM agentbebel_agent_configure
Generate a raw continuation from a BebeLM agent transcriptbebel_agent_generate
Start a background raw agent generation jobbebel_agent_generate_async
Inspect a BebeLM agentbebel_agent_info
Run a BebeLM agent with R tool dispatchbebel_agent_run
Append raw text to a BebeLM agent transcriptbebel_append
Append an upstream BebeLM system turn to an agent transcriptbebel_append_system
Append token ids to a BebeLM agent transcriptbebel_append_tokens
Append a ChatML tool result turn to a BebeLM agent transcriptbebel_append_tool_result
Append a ChatML user turn to a BebeLM agent transcriptbebel_append_user
Generate and close an assistant ChatML turn from a BebeLM agentbebel_assistant_turn
Start a background assistant-turn jobbebel_assistant_turn_async
Open an assistant turn and stop when a tool call closesbebel_assistant_turn_tool_stop
Start a background assistant-turn job that stops on tool-call closebebel_assistant_turn_tool_stop_async
Cancel a BebeLM async jobbebel_async_cancel
Collect a BebeLM async job resultbebel_async_collect
Drain queued BebeLM async job eventsbebel_async_events
Poll a BebeLM async jobbebel_async_poll
Wait for a BebeLM async jobbebel_async_wait
Benchmark async BebeLM generation throughputbebel_benchmark_generation
Generate a single ChatML assistant replybebel_chat
Start a background ChatML assistant reply jobbebel_chat_async
Clear a BebeLM agent transcript and cachesbebel_clear
Decode BebeLM token idsbebel_detokenize
Build a BebeLM generation event handlerbebel_event_handler
Return BebeLM stream event types.bebel_event_types
Generate a raw continuation from a promptbebel_generate
Start a background raw generation jobbebel_generate_async
Return a BebeLM agent token transcriptbebel_history
Load a BebeLM GGUF modelbebel_model_load
Parse a single BebeLM tool call blockbebel_parse_tool_call
Parse BebeLM tool callsbebel_parse_tool_calls
Return BebeLM tokenizer special token ids.bebel_token_ids
Tokenize text with a BebeLM model tokenizerbebel_tokenize
Define a BebeLM R toolbebel_tool
Render a BebeLM tool schemabebel_tool_schema_json
Decode a BebeLM agent transcriptbebel_transcript
Persistent BebeLM conversation agent with transcript and decode caches.BebelAgent
Agent configuration updateBebelAgentConfigureOptions
Agent construction optionsBebelAgentOptions
BebeLM agent referenceBebelAgentRef
Agent run optionsBebelAgentRunOptions
Async event drain optionsBebelAsyncEventDrainOptions
Background BebeLM generation job.BebelAsyncJob
BebeLM async job referenceBebelAsyncJobRef
Async wait optionsBebelAsyncWaitOptions
Generation benchmark optionsBebelGenerationBenchmarkOptions
Generation optionsBebelGenerationOptions
Loaded BebeLM GGUF generation model.BebelModel
Model loading optionsBebelModelLoadOptions
BebeLM model referenceBebelModelRef
Scalar non-empty textBebelScalarText
Tokenizer optionsBebelTokenizeOptions
BebeLM tool referenceBebelToolRef
R tool exposed to BebeLMBebelToolSpec
Return model-input ids aligned to ColBERT token vectorscolbert_embedding_ids
Materialize ColBERT token vectorscolbert_embedding_vectors
Inspect ColBERT token vectorscolbert_embeddings_info
Encode a retrieval document with ColBERTcolbert_encode_document
Encode a retrieval query with ColBERTcolbert_encode_query
Score a query and document with ColBERT MaxSimcolbert_maxsim
Inspect a ColBERT modelcolbert_model_info
Load a native LFM2.5-ColBERT GGUF modelcolbert_model_load
Rank documents with ColBERT MaxSimcolbert_rank
One query or document's L2-normalized ColBERT token vectors.ColbertEmbeddings
ColBERT token-vector referenceColbertEmbeddingsRef
Loaded LFM2.5-ColBERT GGUF model.ColbertModel
ColBERT loading optionsColbertModelLoadOptions
ColBERT model referenceColbertModelRef
Generate EmbeddingGemma text embeddingsembeddinggemma_embed
Encode retrieval documents with EmbeddingGemmaembeddinggemma_embed_document
Encode retrieval queries with EmbeddingGemmaembeddinggemma_embed_query
Inspect an EmbeddingGemma modelembeddinggemma_model_info
Load an EmbeddingGemma GGUF modelembeddinggemma_model_load
Tokenize EmbeddingGemma model inputembeddinggemma_tokenize
EmbeddingGemma loading optionsEmbeddingGemmaLoadOptions
Loaded EmbeddingGemma GGUF model.EmbeddingGemmaModel
EmbeddingGemma model referenceEmbeddingGemmaModelRef
EmbeddingGemma encoding optionsEmbeddingGemmaOptions
Print a BebeLM generation resultprint.bebelGeneration
Return feature information reported by the loaded Rust backend.rbebelm_backend_features
Inspect Rbebelm backend dispatch staterbebelm_backend_info
Inspect CPU SIMD support used by backend dispatchrbebelm_cpuid_info
Select the Rbebelm native backendrbebelm_set_backend