bmoir's picture
|
download
raw
1.15 kB
---
library_name: peft
base_model: mistralai/Mistral-7B-v0.1
pipeline_tag: text-generation
---
Description: Coding tasks in multiple languages\
Original dataset: https://huggingface.co/datasets/ise-uiuc/Magicoder-OSS-Instruct-75K \
---\
Try querying this adapter for free in Lora Land at https://predibase.com/lora-land! \
The adapter_category is STEM and the name is Code Generation (magicoder)\
---\
Sample input: Below is a programming problem, paired with a language in which the solution should be written. Write a solution in the provided that appropriately solves the programming problem.\n\n### Problem:
def strlen(string: str) -> int:
""" Return length of given string
>>> strlen('')
0
>>> strlen('abc')
3
"""
\n\n### Language: python\n\n### Solution: \
---\
Sample output: ```python
def strlen(string: str) -> int:
return len(string)```\
---\
Try using this adapter yourself!
```
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "mistralai/Mistral-7B-v0.1"
peft_model_id = "predibase/magicoder"
model = AutoModelForCausalLM.from_pretrained(model_id)
model.load_adapter(peft_model_id)
```

Xet Storage Details

Size:
1.15 kB
·
Xet hash:
56cb1a9f6709e58ebd8712ac0146f226c4460812a07c271a8d09fe4b6665e871

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.