roskosmos19 commited on
Commit
9d360d3
·
verified ·
1 Parent(s): dd7cb08

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -10
README.md CHANGED
@@ -54,19 +54,19 @@ uv pip install transformers torch accelerate
54
  from transformers import AutoModelForCausalLM, AutoTokenizer
55
  import torch
56
 
57
- model = AutoModelForCausalLM.from_pretrained("Aquiles-ai/Athenea-4B-Coding",
58
  dtype=torch.bfloat16,
59
  trust_remote_code=True,
60
  device_map="auto",
61
  attn_implementation="flash_attention_2") # Requires flash-attn
62
 
63
  # Without flash-attn:
64
- # model = AutoModelForCausalLM.from_pretrained("Aquiles-ai/Athenea-4B-Coding",
65
  # dtype="auto",
66
  # device_map="auto"
67
  # )
68
 
69
- tokenizer = AutoTokenizer.from_pretrained("Aquiles-ai/Athenea-4B-Coding", trust_remote_code=True)
70
 
71
  messages = [
72
  {"role": "user", "content": "Hey, write a Python function that calculates the factorial of a number recursively."}
@@ -147,7 +147,7 @@ for chunk in streamer:
147
  **Start server:**
148
 
149
  ```bash
150
- vllm serve Aquiles-ai/Athenea-4B-Coding \
151
  --host 0.0.0.0 \
152
  --port 8000 \
153
  --api-key dummyapikey \
@@ -162,7 +162,7 @@ vllm serve Aquiles-ai/Athenea-4B-Coding \
162
  from openai import OpenAI
163
  client = OpenAI(api_key="dummyapikey", base_url="http://127.0.0.1:8000/v1")
164
  stream = client.chat.completions.create(
165
- model="Aquiles-ai/Athenea-4B-Coding",
166
  messages=[{
167
  "role": "user",
168
  "content": "Hey, write a Python function that determines if a string is a palindrome, ignoring case, spaces, and punctuation."
@@ -179,11 +179,6 @@ for chunk in stream:
179
 
180
 
181
 
182
- ### Aquiles-playground
183
-
184
- In addition to code usage, you can also try our models locally through an [open-source playground on GitHub](https://github.com/Aquiles-ai/aquiles-playground).
185
-
186
-
187
  <p align="center">
188
  Roskosmos19
189
  </p>
 
54
  from transformers import AutoModelForCausalLM, AutoTokenizer
55
  import torch
56
 
57
+ model = AutoModelForCausalLM.from_pretrained("Roskosmos19/Rhea-4B-Coding",
58
  dtype=torch.bfloat16,
59
  trust_remote_code=True,
60
  device_map="auto",
61
  attn_implementation="flash_attention_2") # Requires flash-attn
62
 
63
  # Without flash-attn:
64
+ # model = AutoModelForCausalLM.from_pretrained("Roskosmos19/Rhea-4B-Coding",
65
  # dtype="auto",
66
  # device_map="auto"
67
  # )
68
 
69
+ tokenizer = AutoTokenizer.from_pretrained("Roskosmos19/Rhea-4B-Coding", trust_remote_code=True)
70
 
71
  messages = [
72
  {"role": "user", "content": "Hey, write a Python function that calculates the factorial of a number recursively."}
 
147
  **Start server:**
148
 
149
  ```bash
150
+ vllm serve Roskosmos19/Rhea-4B-Coding \
151
  --host 0.0.0.0 \
152
  --port 8000 \
153
  --api-key dummyapikey \
 
162
  from openai import OpenAI
163
  client = OpenAI(api_key="dummyapikey", base_url="http://127.0.0.1:8000/v1")
164
  stream = client.chat.completions.create(
165
+ model="roskosmos19/Rhea-4B-Coding",
166
  messages=[{
167
  "role": "user",
168
  "content": "Hey, write a Python function that determines if a string is a palindrome, ignoring case, spaces, and punctuation."
 
179
 
180
 
181
 
 
 
 
 
 
182
  <p align="center">
183
  Roskosmos19
184
  </p>