vishesh-t27 commited on
Commit
b0185c2
·
verified ·
1 Parent(s): 7a36923

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -8
README.md CHANGED
@@ -37,7 +37,7 @@ Nandi-Mini-150M-Instruct brings the following key features:
37
 
38
  We’re just getting started with the Nandi series 🚀
39
 
40
- - **Nandi-Mini-150M-Tool-Calling** — Coming Soon this week
41
  - **Nandi-Mini-500M (Base + Instruct)** — Pre-Training Going On
42
  - **Nandi-Mini-1B (Base + Instruct)** — Pre-Training Going On
43
 
@@ -68,18 +68,14 @@ import torch
68
 
69
  model_name = "Rta-AILabs/Nandi-Mini-150M-Instruct"
70
 
 
 
71
  tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
72
  model = AutoModelForCausalLM.from_pretrained(
73
  model_name,
74
  trust_remote_code=True,
75
  dtype=torch.bfloat16
76
- ).cuda()
77
-
78
- model = AutoModelForCausalLM.from_pretrained(
79
- model_name,
80
- trust_remote_code=True,
81
- device_map="auto",
82
- ).eval()
83
 
84
  prompt = "Explain newton's second law of motion"
85
 
 
37
 
38
  We’re just getting started with the Nandi series 🚀
39
 
40
+ - **Nandi-Mini-150M-Specialized-Model-for-Tool-Calling** — Coming Soon this week
41
  - **Nandi-Mini-500M (Base + Instruct)** — Pre-Training Going On
42
  - **Nandi-Mini-1B (Base + Instruct)** — Pre-Training Going On
43
 
 
68
 
69
  model_name = "Rta-AILabs/Nandi-Mini-150M-Instruct"
70
 
71
+ device = "cuda" if torch.cuda.is_available() else "cpu"
72
+
73
  tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
74
  model = AutoModelForCausalLM.from_pretrained(
75
  model_name,
76
  trust_remote_code=True,
77
  dtype=torch.bfloat16
78
+ ).device()
 
 
 
 
 
 
79
 
80
  prompt = "Explain newton's second law of motion"
81