Skip to content

Instantly share code, notes, and snippets.

View YuchenJin's full-sized avatar
🎯
Focusing

Yuchen Jin YuchenJin

🎯
Focusing
View GitHub Profile
import json
import httpx
import requests
from openai import OpenAI
func_name = "chat/completions"
model = "NousResearch/Hermes-3-Llama-3.1-70B"
import requests
import os
from github import Github
from dotenv import load_dotenv
from datetime import datetime, timezone
load_dotenv()
github_token = os.getenv("GITHUB_TOKEN")
g = Github(github_token)
import requests
url = "https://api.hyperbolic.xyz/v1/chat/completions"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer $HYPERBOLIC_API_KEY"
}
data = {
"messages": [
{'role': 'user', 'content': 'Given the following question and four candidate answers (A, B, C and D), choose the best answer.\nQuestion: The population of the city where Michelle was born is 145,826. What is the value of the 5 in the number 145,826?\nA. 5 thousands\nB. 5 hundreds\nC. 5 tens\nD. 5 ones\nYour response should end with "The best answer is [the_answer_letter]" where the [the_answer_letter] is one of A, B, C or D.'}, {'role': 'assistant', 'content': 'The best answer is A.'}, {'role': 'user', 'content': 'Given the following question and four candidate answers (A, B, C and D), choose the best answer.\nQuestion: Olivia used the rule "Add 11" to create the number pattern shown below. 10, 21, 32, 43, 54 Which statement about the number pattern is true?\nA. The 10th number in the pattern will be a
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from tvm.script import relax as R
from tvm import relax
resnet_mod_text = """
@tvm.script.ir_module
class Module:
@tir.prim_func
def batch_norm2(rxplaceholder_5: tir.Buffer[(1, 64, 56, 56), "float32"], rxplaceholder_6: tir.Buffer[(64,), "float32"], rxplaceholder_7: tir.Buffer[(64,), "float32"], rxplaceholder_8: tir.Buffer[(64,), "float32"], rxplaceholder_9: tir.Buffer[(64,), "float32"], T_add_2: tir.Buffer[(1, 64, 56, 56), "float32"], T_multiply_3: tir.Buffer[(64,), "float32"], T_multiply_4: tir.Buffer[(64,), "float32"]) -> None:
# function attr dict
tir.func_attr({"global_symbol": "batch_norm2", "tir.noalias": True})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.