lamm-mit / BioinspiredMixtral

huggingface.co
Total runs: 41
24-hour runs: 2
7-day runs: 6
30-day runs: 13
Model's Last Updated: August 14 2024
text-generation

Introduction of BioinspiredMixtral

Model Details of BioinspiredMixtral

BioinspiredMixtral: Large Language Model for the Mechanics of Biological and Bio-Inspired Materials using Mixture-of-Experts

To accelerate discovery and guide insights, we report an open-source autoregressive transformer large language model (LLM), trained on expert knowledge in the biological materials field, especially focused on mechanics and structural properties.

The model is finetuned with a corpus of over a thousand peer-reviewed articles in the field of structural biological and bio-inspired materials and can be prompted to recall information, assist with research tasks, and function as an engine for creativity.

The model is based on mistralai/Mixtral-8x7B-Instruct-v0.1.

image/png

This model is based on work reported in https://doi.org/10.1002/advs.202306724 , but uses a mixture-of-experts strategy.

from llama_cpp import Llama

model_path='lamm-mit/BioinspiredMixtral/ggml-model-q5_K_M.gguf'
chat_format="mistral-instruct"

llm = Llama(model_path=model_path,
            n_gpu_layers=-1,verbose= True, 
            n_ctx=10000,
            #main_gpu=0,
            chat_format=chat_format,
            #split_mode=llama_cpp.LLAMA_SPLIT_LAYER
            )

Or, download directly from Hugging Face:

from llama_cpp import Llama

model_path='lamm-mit/BioinspiredMixtral/ggml-model-q5_K_M.gguf'
chat_format="mistral-instruct"

llm = Llama.from_pretrained(
    repo_id=model_path,
    filename="*q5_K_M.gguf",
    verbose=True,
    n_gpu_layers=-1, 
    n_ctx=10000,
    #main_gpu=0,
    chat_format=chat_format,
)

For inference:

def generate_BioMixtral (system_prompt='You are an expert in biological materials, mechanics and related topics.', prompt="What is spider silk?",
             temperature=0.0,
             max_tokens=10000,  
             ):

    if system_prompt==None:
        messages=[
            {"role": "user", "content": prompt},
            ]
    else:
        messages=[
            {"role": "system",  "content": system_prompt},
            {"role": "user", "content": prompt},
        ]

    result=llm.create_chat_completion(
            messages=messages,
            temperature=temperature,
            max_tokens=max_tokens,
        )

start_time = time.time()
result=generate_BioMixtral(system_prompt='You respond accurately.', 
                        prompt="What is graphene? Answer with detail.",
                        max_tokens=512, temperature=0.7,  )
print (result)
deltat=time.time() - start_time
print("--- %s seconds ---" % deltat)
toked=tokenizer(res)
print ("Tokens per second (generation): ", len (toked['input_ids'])/deltat)

arXiv: https://arxiv.org/abs/2309.08788

Runs of lamm-mit BioinspiredMixtral on huggingface.co

41
Total runs
2
24-hour runs
3
3-day runs
6
7-day runs
13
30-day runs

More Information About BioinspiredMixtral huggingface.co Model

More BioinspiredMixtral license Visit here:

https://choosealicense.com/licenses/apache-2.0

BioinspiredMixtral huggingface.co

BioinspiredMixtral huggingface.co is an AI model on huggingface.co that provides BioinspiredMixtral's model effect (), which can be used instantly with this lamm-mit BioinspiredMixtral model. huggingface.co supports a free trial of the BioinspiredMixtral model, and also provides paid use of the BioinspiredMixtral. Support call BioinspiredMixtral model through api, including Node.js, Python, http.

BioinspiredMixtral huggingface.co Url

https://huggingface.co/lamm-mit/BioinspiredMixtral

lamm-mit BioinspiredMixtral online free

BioinspiredMixtral huggingface.co is an online trial and call api platform, which integrates BioinspiredMixtral's modeling effects, including api services, and provides a free online trial of BioinspiredMixtral, you can try BioinspiredMixtral online for free by clicking the link below.

lamm-mit BioinspiredMixtral online free url in huggingface.co:

https://huggingface.co/lamm-mit/BioinspiredMixtral

BioinspiredMixtral install

BioinspiredMixtral is an open source model from GitHub that offers a free installation service, and any user can find BioinspiredMixtral on GitHub to install. At the same time, huggingface.co provides the effect of BioinspiredMixtral install, users can directly use BioinspiredMixtral installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

BioinspiredMixtral install url in huggingface.co:

https://huggingface.co/lamm-mit/BioinspiredMixtral

Url of BioinspiredMixtral

BioinspiredMixtral huggingface.co Url

Provider of BioinspiredMixtral huggingface.co

lamm-mit
ORGANIZATIONS

Other API from lamm-mit

huggingface.co

Total runs: 854
Run Growth: 289
Growth Rate: 33.84%
Updated:December 04 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 31 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 11 2026