andyzoujm / representation-engineering

Representation Engineering: A Top-Down Approach to AI Transparency
https://www.ai-transparency.org/
MIT License
693 stars 79 forks source link

Question about customize pipeline in code #20

Open Jeffwang87 opened 10 months ago

Jeffwang87 commented 10 months ago
Screenshot 2023-11-19 at 11 24 31 AM

What does the self function in the function of your customized pipeline refer to?

Thanks

justinphan3110cais commented 10 months ago

@Jeffwang87 Hi, self will go through:

1. _sanitize_parameters
2. preprocess
3. _forward
4. postprocess

More information about the documents from Hugging Face Pipeline is here