Views
No views yet
/think or /no_think to select response mode at inference).<|startoftext|><|im_start|>system
You are a biomedical AI specialized in aging biology, trained on genomic, proteomic, and clinical data.<|im_end|>
<|im_start|>user
Which of the following two Melanoma cases has had a longer progression-free interval after the initial RNAseq screening?
Options:
Patient-A: A 77-year-old male diagnosed with Stage I, TT2a, NNX, MM0 disease non-ulcerated, Clark level III;
Patient-B: A 85-year-old male diagnosed with Stage III, TTX, NN2, MM0 disease
GSEA results:
No significant pathway differences detected.<|im_end|>
<|im_start|>assistanttokenizer.apply_chat_template() to format your messages automatically.| Name | Description | Docs | Notebook |
|---|---|---|---|
| Transformers | Simple inference with direct access to model internals. | Link | ![]() |
| vLLM | High-throughput production deployments with GPU. | Link | ![]() |
| SGLang | High-throughput production deployments with GPU. | Link | — |
| llama.cpp | Cross-platform inference with CPU offloading. | Link | ![]() |
| MLX | Apple's machine learning framework optimized for Apple Silicon. | Link | — |
| LM Studio | Desktop application for running LLMs locally. | Link | — |
transformers>=5.1.0)1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3# Load model and tokenizer
4model_id = "LiquidAI/LFM2-1.2B-Longevity"
5model = AutoModelForCausalLM.from_pretrained(
6 model_id,
7 device_map="auto",
8 dtype="bfloat16",
9)
10tokenizer = AutoTokenizer.from_pretrained(model_id)
11
12# Generate answer
13messages = [
14 {"role": "system", "content": "You are a biomedical AI specialized in aging biology, trained on genomic, proteomic, and clinical data."},
15 {"role": "user", "content": "What are the hallmarks of aging?"},
16]
17
18input_ids = tokenizer.apply_chat_template(
19 messages,
20 add_generation_prompt=True,
21 return_tensors="pt",
22 tokenize=True,
23 return_dict=False,
24).to(model.device)
25
26output = model.generate(
27 input_ids,
28 do_sample=True,
29 temperature=0.3,
30 min_p=0.15,
31 repetition_penalty=1.05,
32 max_new_tokens=1500
33)
34
35print(tokenizer.decode(output[0], skip_special_tokens=False))1@misc{liquid_ai_2026,
2 author = { Liquid AI },
3 title = { LFM2-1.2B-Longevity (Revision 0d2ac83) },
4 year = 2026,
5 url = { https://huggingface.co/LiquidAI/LFM2-1.2B-Longevity },
6 doi = { 10.57967/hf/9887 },
7 publisher = { Hugging Face }
8}1@article{liquidai2025lfm2,
2 title={LFM2 Technical Report},
3 author={Liquid AI},
4 journal={arXiv preprint arXiv:2511.23404},
5 year={2025}
6}