- @stub.function()
+ @stub.function(gpu="T4")
def f(i):
return i * i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import modal | |
from modal import ( | |
Image, | |
Mount, | |
Secret, | |
method, | |
) | |
import os | |
def cache_hf_model(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""BertForQuestionAnswering( | |
(bert): BertModel( | |
(embeddings): BertEmbeddings( | |
(word_embeddings): Embedding(30522, 1024, padding_idx=0) | |
(position_embeddings): Embedding(512, 1024) | |
(token_type_embeddings): Embedding(2, 1024) | |
(LayerNorm): LayerNorm((1024,), eps=1e-12, elementwise_affine=True) | |
(dropout): Dropout(p=0.1, inplace=False) | |
) | |
(encoder): BertEncoder( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"schemaVersion":1,"label":"PASS","message":"fuzz execs: 320850"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This example uses Android 29 for building/target SDK | |
# and Android 21 as an emulator for running tests | |
language: android | |
dist: trusty | |
android: | |
components: | |
- build-tools-29.0.2 | |
- tools | |
- platform-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <random> | |
#include <chrono> | |
#ifdef _MSC_VER | |
#include <intrin.h> | |
#define OPTIMIZE_FENCE() _ReadWriteBarrier(); | |
#else | |
#define OPTIMIZE_FENCE() asm volatile(""); | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ | |
{ | |
"temp1": "-5", | |
"temp2": "4" | |
}, | |
{ | |
"temp1": "-2", | |
"temp2": "7" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import aiohttp | |
import asyncio | |
import json | |
import datetime | |
import argparse | |
import numbers | |
URL = '''https://db.softver.org.mk/influxdb/query''' | |
ROW_TIME = 0 |