Is Bespoke Minicheck available on windows?
#4
by
Jasper1414
- opened
I downloaded Bespoke Minicheck locally on a Windows laptop using AutoModelForCausalLM.from_pretrained() and followed the simple use case in the huggingface documentation. I ran into the issue of ModuleNotFoundError: No module named 'resource' which only supports Unix based systems. Was there a mistake I made along the way and is Bespoke Minicheck supported on Windows?
model = AutoModelForCausalLM.from_pretrained(
model_name,
cache_dir=cache_dir,
device_map=device_map,
torch_dtype="auto",
trust_remote_code=True,
_attn_implementation='eager'
# force_download=True
)
Download and cache the tokenizer
tokenizer = AutoTokenizer.from_pretrained(
model_name,
cache_dir=cache_dir,
trust_remote_code=True
# force_download=True
)