SSK-DNB commited on
Commit
0f383d0
·
verified ·
1 Parent(s): 2ee34ad

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -9
README.md CHANGED
@@ -31,15 +31,15 @@ from transformers import pipeline
31
  pipe = pipeline("text-generation", model="Danibasters/TinyLlama-1.1B-Chat-v1.0-PCD250k_v0.1", torch_dtype=torch.bfloat16, device_map="auto")
32
 
33
  text = '''Create a program that determines whether a given year is a leap year or not.
34
- The input is an integer Y (1000 ≤ Y ≤ 2999) representing a year, provided in a single line.
35
- Output "YES" if the given year is a leap year, otherwise output "NO" in a single line.
36
- A leap year is determined according to the following rules:
37
- Rule 1: A year divisible by 4 is a leap year.
38
- Rule 2: A year divisible by 100 is not a leap year.
39
- Rule 3: A year divisible by 400 is a leap year.
40
- Rule 4: If none of the above rules (Rule 1-3) apply, the year is not a leap year.
41
- If a year satisfies multiple rules, the rule with the higher number takes precedence.
42
- '''
43
  texts = f"Translate the following problem statement into Python code. :\n{text}"
44
  messages = [
45
  {"role": "system","content": "You are a chatbot who can help code!",},
 
31
  pipe = pipeline("text-generation", model="Danibasters/TinyLlama-1.1B-Chat-v1.0-PCD250k_v0.1", torch_dtype=torch.bfloat16, device_map="auto")
32
 
33
  text = '''Create a program that determines whether a given year is a leap year or not.
34
+ The input is an integer Y (1000 ≤ Y ≤ 2999) representing a year, provided in a single line.
35
+ Output "YES" if the given year is a leap year, otherwise output "NO" in a single line.
36
+ A leap year is determined according to the following rules:
37
+ Rule 1: A year divisible by 4 is a leap year.
38
+ Rule 2: A year divisible by 100 is not a leap year.
39
+ Rule 3: A year divisible by 400 is a leap year.
40
+ Rule 4: If none of the above rules (Rule 1-3) apply, the year is not a leap year.
41
+ If a year satisfies multiple rules, the rule with the higher number takes precedence.
42
+ '''
43
  texts = f"Translate the following problem statement into Python code. :\n{text}"
44
  messages = [
45
  {"role": "system","content": "You are a chatbot who can help code!",},