Sukmadi commited on
Commit
d8d58cb
·
1 Parent(s): ab16b9b
Files changed (2) hide show
  1. test/cerebras-api.py +0 -32
  2. test/testing-things.py +2 -0
test/cerebras-api.py DELETED
@@ -1,32 +0,0 @@
1
- # import os
2
- # from cerebras.cloud.sdk import Cerebras
3
-
4
- # client = Cerebras(
5
- # # This is the default and can be omitted
6
- # api_key=os.environ.get("CEREBRAS_API_KEY")
7
- # )
8
-
9
- # stream = client.chat.completions.create(
10
- # messages=[
11
- # {
12
- # "role": "system",
13
- # "content": ""
14
- # }
15
- # ],
16
- # model="gpt-oss-120b",
17
- # stream=True,
18
- # max_completion_tokens=65536,
19
- # temperature=1,
20
- # top_p=1
21
- # )
22
-
23
- my_dict = {'apple': 1, 'banana': 2, 'cherry': 3}
24
-
25
- # Enumerate through both keys and values
26
- for index, (key, value) in enumerate(my_dict.items()):
27
- print(f"Index: {index}, Key: {key}, Value: {value}")
28
-
29
- # Enumerate only through keys (less common with dictionaries)
30
- print("\nEnumerate through keys only:")
31
- for index, key in enumerate(my_dict): # By default, iterating a dict iterates its keys
32
- print(f"Index: {index}, Key: {key}")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
test/testing-things.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import torch
2
+ print(torch.cuda.is_available())