Comments (4)
Hi @langhaobeijing, sorry for the delay in answer!
I just tested and it works for me. Cany you try to update alpaca_eval pip install -U alpaca_eval
from alpaca_farm.
Hi @YannDubs,
Thanks for your time! The code can run well in interactive mode of python, but cannot run successfully in script mode.
from alpaca_farm.
thanks @langhaobeijing , I was able to reproduce it. This is very strange. I'll let you know when I solve that problem
from alpaca_farm.
Hi @langhaobeijing the issue is likely that you are running a script without a if __name__ == '__main__':
block which doesn't work if you use multiprocessing (which is the default for openai completion function) because every process will try to import the file that called it, which will cause the script to rerun.
You have two options, to avoid this issue:
- You can set
OPENAI_MAX_CONCURRENCY=1
to remove multi processing - you can run your script with a
if __name__ == '__main__':
block like in the following
from alpaca_farm.auto_annotations import PairwiseAutoAnnotator
import json
def run():
with open("examples/data/outputs_pairs.json") as f:
outputs_pairs = json.load(f)
annotator = PairwiseAutoAnnotator(annotators_config="test", caching_path=None)
annotated = annotator.annotate_pairs(outputs_pairs)
if __name__ == '__main__':
run()
from alpaca_farm.
Related Issues (20)
- [Bug] Error importing is_deepspeed_zero3_enabled HOT 1
- Question about KL term HOT 1
- Reproducibility of pretuned reward model
- Use with Llama-2-70b-hf? HOT 4
- KeyError: 'llama' in /recover_model_weights.py HOT 2
- Confusing detail preference mapping HOT 1
- recover_model_weights.py gives WARNING:root:Your base LLaMA checkpoint is converted with transformers==4.27.0.dev0
- Huge memory demand of recover_model_weights.py?
- RewardModel.from_pretrained() loads redundant weights (incurs extra ~30GB of RAM)
- Why use FSDP instead of Deepspeed? HOT 2
- lower cuda version? HOT 1
- integrity_check error with sft10k
- score with reward model HOT 2
- RecursionError: maximum recursion depth exceeded
- BaseAnnotator.__init__() got an unexpected keyword argument 'other_keys_to_keep' HOT 4
- PairwiseAutoAnnotator always "Annotating 0 examples with gpt4_3" HOT 1
- Repeated Deprecation Error HOT 3
- Error downloading pre-trained weights
- Using pretrained models HOT 3
- Inquiry Regarding Supervised Fine-Tuning with AlpacaFarm Framework for Pythia Models HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpaca_farm.