katerinanasto commited on
Commit
48f02cc
·
verified ·
1 Parent(s): aefc26e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
README.md CHANGED
@@ -24,7 +24,7 @@ Training data was assembled across several domains:
24
 
25
  Approximate scale across all domains: ≈10⁶ training prompts at the order of several billion tokens total. LFM2-2.6B-Longevity was trained using full-parameter supervised fine-tuning on the longevity training corpus. Exact data composition, prompt and token counts, and training recipe details are reported in the accompanying manuscript.
26
 
27
- ## Example usage
28
 
29
  ```python
30
  from transformers import AutoModelForCausalLM, AutoTokenizer
@@ -34,7 +34,7 @@ model_id = "LiquidAI/LFM2-2.6B-Longevity"
34
  model = AutoModelForCausalLM.from_pretrained(
35
  model_id,
36
  device_map="auto",
37
- torch_dtype="bfloat16",
38
  )
39
  tokenizer = AutoTokenizer.from_pretrained(model_id)
40
 
@@ -76,4 +76,5 @@ The fine-tuned model is released under LFM Open License v1.0. The underlying bas
76
  author = {Insilico Medicine and Liquid AI},
77
  year = {2026},
78
  howpublished = {\url{https://huggingface.co/LiquidAI/LFM2-2.6B-Longevity}}
79
- }
 
 
24
 
25
  Approximate scale across all domains: ≈10⁶ training prompts at the order of several billion tokens total. LFM2-2.6B-Longevity was trained using full-parameter supervised fine-tuning on the longevity training corpus. Exact data composition, prompt and token counts, and training recipe details are reported in the accompanying manuscript.
26
 
27
+ ## Example usage with Transformers (compatible with transformers>=5.1.0)
28
 
29
  ```python
30
  from transformers import AutoModelForCausalLM, AutoTokenizer
 
34
  model = AutoModelForCausalLM.from_pretrained(
35
  model_id,
36
  device_map="auto",
37
+ dtype="bfloat16",
38
  )
39
  tokenizer = AutoTokenizer.from_pretrained(model_id)
40
 
 
76
  author = {Insilico Medicine and Liquid AI},
77
  year = {2026},
78
  howpublished = {\url{https://huggingface.co/LiquidAI/LFM2-2.6B-Longevity}}
79
+ }
80
+ ```