narcolepticchicken commited on
Commit
dec8505
·
verified ·
1 Parent(s): 2d6ec90

Update ML Intern artifact metadata

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - ml-intern
4
+ ---
5
+
6
+ # narcolepticchicken/patch-reward-model
7
+
8
+ <!-- ml-intern-provenance -->
9
+ ## Generated by ML Intern
10
+
11
+ This model repository was generated by [ML Intern](https://github.com/huggingface/ml-intern), an agent for machine learning research and development on the Hugging Face Hub.
12
+
13
+ - Try ML Intern: https://smolagents-ml-intern.hf.space
14
+ - Source code: https://github.com/huggingface/ml-intern
15
+
16
+ ## Usage
17
+
18
+ ```python
19
+ from transformers import AutoModelForCausalLM, AutoTokenizer
20
+
21
+ model_id = 'narcolepticchicken/patch-reward-model'
22
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
23
+ model = AutoModelForCausalLM.from_pretrained(model_id)
24
+ ```
25
+
26
+ For non-causal architectures, replace `AutoModelForCausalLM` with the appropriate `AutoModel` class.