gitextract_nwpardo3/ ├── .github/ │ ├── FUNDING.yml │ └── ISSUE_TEMPLATE/ │ └── feature_request.md ├── .gitignore ├── .gitpod.yml ├── .idea/ │ └── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── FinGPT_ Training with LoRA and Meta-Llama-3-8B.ipynb ├── FinGPT_Inference_Llama2_13B_falcon_7B_for_Beginners.ipynb ├── FinGPT_Training_LoRA_with_ChatGLM2_6B_for_Beginners.ipynb ├── FinGPT_Training_LoRA_with_ChatGLM2_6B_for_Beginners_v2-2.ipynb ├── LICENSE ├── MANIFEST.in ├── README.md ├── Use_Cases.md ├── figs/ │ └── README.md ├── fingpt/ │ ├── FinGPT_Benchmark/ │ │ ├── __init__.py │ │ ├── benchmarks/ │ │ │ ├── __init__.py │ │ │ ├── benchmarks.py │ │ │ ├── convfinqa.py │ │ │ ├── evaluate.sh │ │ │ ├── fineval.py │ │ │ ├── finred.py │ │ │ ├── fiqa.py │ │ │ ├── fpb.py │ │ │ ├── headline.py │ │ │ ├── ner.py │ │ │ ├── nwgi.py │ │ │ ├── sentiment_templates.txt │ │ │ └── tfns.py │ │ ├── config.json │ │ ├── config_hf.json │ │ ├── config_new.json │ │ ├── data/ │ │ │ ├── __init__.py │ │ │ ├── download.py │ │ │ └── prepare_data.ipynb │ │ ├── demo.ipynb │ │ ├── readme.md │ │ ├── train.sh │ │ ├── train_lora.py │ │ └── utils.py │ ├── FinGPT_FinancialReportAnalysis/ │ │ ├── README.md │ │ ├── reportanalysis.ipynb │ │ └── utils/ │ │ ├── __init__.py │ │ ├── earning_calls.py │ │ ├── format_pdf.py │ │ └── rag.py │ ├── FinGPT_Forecaster/ │ │ ├── AAAI-Good-Data/ │ │ │ ├── README.md │ │ │ ├── Testing.ipynb │ │ │ ├── Training.ipynb │ │ │ ├── config.json │ │ │ ├── train.sh │ │ │ ├── train_lora.py │ │ │ ├── utils.py │ │ │ └── yes.gitkeep │ │ ├── FinGPT-Forecaster-Chinese/ │ │ │ ├── Ashare_data.py │ │ │ ├── Formulate_training_data.ipynb │ │ │ ├── Inference_datapipe.py │ │ │ ├── requirement.txt │ │ │ ├── train_lora.py │ │ │ └── utils.py │ │ ├── README.md │ │ ├── app.py │ │ ├── config.json │ │ ├── data.py │ │ ├── data_infererence_fetch.py │ │ ├── data_pipeline.py │ │ ├── demo.ipynb │ │ ├── indices.py │ │ ├── prepare_data.ipynb │ │ ├── prompt.py │ │ ├── requirements.txt │ │ ├── train.sh │ │ ├── train_lora.py │ │ └── utils.py │ ├── FinGPT_MultiAgentsRAG/ │ │ ├── Evaluation_methods/ │ │ │ ├── HaluEval/ │ │ │ │ ├── evaluate.py │ │ │ │ ├── filtering.py │ │ │ │ ├── generate.py │ │ │ │ └── halueval │ │ │ ├── MMLU/ │ │ │ │ ├── eval_mmlu.py │ │ │ │ ├── gen_mmlu.py │ │ │ │ └── mmlu │ │ │ ├── TruthfulQA/ │ │ │ │ ├── evaluate.py │ │ │ │ ├── truthfulqa │ │ │ │ └── utilities.py │ │ │ └── new_evaluation │ │ ├── Fine_tune_model/ │ │ │ ├── fine_tune_GLM2.ipynb │ │ │ ├── fine_tune_Llama2.ipynb │ │ │ └── newFTmodels │ │ ├── MultiAgents/ │ │ │ ├── inference_mmlu_Llama2.ipynb │ │ │ ├── inference_mmlu_Llama2_cleaned.ipynb │ │ │ ├── inference_mmlu_Llama2_v2.ipynb │ │ │ └── new_file_multiagents │ │ ├── RAG/ │ │ │ ├── RAG_part.ipynb │ │ │ └── new_file_rag │ │ └── README.md │ ├── FinGPT_Others/ │ │ ├── FinGPT_Low_Code_Development/ │ │ │ ├── chatgpt-low-code-development-v1/ │ │ │ │ ├── main.ipynb │ │ │ │ └── readme.md │ │ │ └── chatgpt-low-code-development-v2/ │ │ │ ├── main.ipynb │ │ │ └── readme.md │ │ ├── FinGPT_Robo_Advisor/ │ │ │ ├── chatgpt-robo-advisor-v1/ │ │ │ │ ├── ChatGPT_Robo_Advisor.ipynb │ │ │ │ ├── ChatGPT_Robo_Advisor_Results.csv │ │ │ │ ├── README.md │ │ │ │ └── requirements.txt │ │ │ └── chatgpt-robo-advisor-v2/ │ │ │ ├── ChatGPT_Robo_Advisor_v2.ipynb │ │ │ ├── ChatGPT_Robo_Advisor_v2_Results.csv │ │ │ ├── README.md │ │ │ ├── data/ │ │ │ │ └── dataset.csv │ │ │ └── requirements.txt │ │ ├── FinGPT_Trading/ │ │ │ ├── chatgpt-trading-v1/ │ │ │ │ ├── README.md │ │ │ │ ├── data/ │ │ │ │ │ ├── dataset.csv │ │ │ │ │ ├── maotai.csv │ │ │ │ │ └── maotai_another.csv │ │ │ │ ├── get_chatgpt_results.ipynb │ │ │ │ ├── requirements.txt │ │ │ │ └── trade_with_chatgpt.ipynb │ │ │ └── chatgpt-trading-v2/ │ │ │ ├── README.md │ │ │ ├── data/ │ │ │ │ ├── text-curie-001.pkl │ │ │ │ └── text-davinci-003.pkl │ │ │ ├── get_gpt_sentiment_results/ │ │ │ │ ├── df.csv │ │ │ │ ├── get_gpt_res.py │ │ │ │ └── run.sh │ │ │ ├── openai_token/ │ │ │ │ └── token_.py │ │ │ ├── pyfolio/ │ │ │ │ ├── __init__.py │ │ │ │ ├── _seaborn.py │ │ │ │ ├── _version.py │ │ │ │ ├── capacity.py │ │ │ │ ├── deprecate.py │ │ │ │ ├── interesting_periods.py │ │ │ │ ├── ipycompat.py │ │ │ │ ├── perf_attrib.py │ │ │ │ ├── plotting.py │ │ │ │ ├── pos.py │ │ │ │ ├── round_trips.py │ │ │ │ ├── tears.py │ │ │ │ ├── tests/ │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── test_capacity.py │ │ │ │ │ ├── test_nbs.py │ │ │ │ │ ├── test_perf_attrib.py │ │ │ │ │ ├── test_pos.py │ │ │ │ │ ├── test_round_trips.py │ │ │ │ │ ├── test_tears.py │ │ │ │ │ ├── test_timeseries.py │ │ │ │ │ └── test_txn.py │ │ │ │ ├── timeseries.py │ │ │ │ ├── txn.py │ │ │ │ └── utils.py │ │ │ ├── requirements.txt │ │ │ └── trade_with_gpt3.ipynb │ │ └── shares_news_sentiment_classify.py │ ├── FinGPT_RAG/ │ │ ├── README.md │ │ ├── __init__.py │ │ ├── instruct-FinGPT/ │ │ │ ├── README.md │ │ │ ├── chat.py │ │ │ ├── convert_llama_weights_to_hf.py │ │ │ ├── infer.sh │ │ │ ├── inference/ │ │ │ │ ├── batchbot.py │ │ │ │ ├── batchbot_torch.py │ │ │ │ ├── chatbot.py │ │ │ │ └── f1fromcm.py │ │ │ ├── load_data.ipynb │ │ │ ├── nohup.out │ │ │ ├── train.py │ │ │ ├── train.sh │ │ │ └── training/ │ │ │ ├── supervised_finetuning/ │ │ │ │ ├── README.md │ │ │ │ ├── evaluation_scripts/ │ │ │ │ │ └── run_prompt.sh │ │ │ │ ├── main.py │ │ │ │ ├── main_data.py │ │ │ │ ├── prompt_eval.py │ │ │ │ └── training_scripts/ │ │ │ │ ├── README.md │ │ │ │ ├── multi_node/ │ │ │ │ │ ├── run_66b.sh │ │ │ │ │ ├── run_sent-1.3b.sh │ │ │ │ │ └── run_sent-llama-7b.sh │ │ │ │ ├── other_language/ │ │ │ │ │ ├── run_chinese.sh │ │ │ │ │ └── run_japanese.sh │ │ │ │ ├── single_gpu/ │ │ │ │ │ ├── run_1.3b.sh │ │ │ │ │ ├── run_6.7b_lora.sh │ │ │ │ │ └── run_sent-1.3b.sh │ │ │ │ └── single_node/ │ │ │ │ ├── run_1.3b.sh │ │ │ │ ├── run_1.3b_lora.sh │ │ │ │ ├── run_13b.sh │ │ │ │ ├── run_30b_lora.sh │ │ │ │ ├── run_6.7b.sh │ │ │ │ ├── run_llama-13b.sh │ │ │ │ ├── run_sent-1.3b.sh │ │ │ │ ├── run_sent-llama-7b.sh │ │ │ │ └── run_sent-llama2-7b.sh │ │ │ └── utils/ │ │ │ ├── data/ │ │ │ │ ├── data_utils.py │ │ │ │ └── raw_datasets.py │ │ │ ├── ds_utils.py │ │ │ ├── model/ │ │ │ │ ├── model_utils.py │ │ │ │ └── reward_model.py │ │ │ ├── module/ │ │ │ │ └── lora.py │ │ │ └── utils.py │ │ ├── multisource_retrieval/ │ │ │ ├── ChatGPT_sentiment_analysis_benchmark.ipynb │ │ │ ├── README.md │ │ │ ├── __init__.py │ │ │ ├── count_contexts.py │ │ │ ├── data/ │ │ │ │ ├── sent_valid.csv │ │ │ │ ├── sent_valid_penultimate_run.csv │ │ │ │ ├── sent_valid_penultimate_run_classified.csv │ │ │ │ ├── sent_valid_penultimate_run_classified_classified.csv │ │ │ │ ├── sent_valid_scraped.csv │ │ │ │ ├── test.csv │ │ │ │ └── test_classified.csv │ │ │ ├── external_LLMs/ │ │ │ │ ├── chatGPT_tokenization.py │ │ │ │ ├── chatGPT_tokenization.tsx │ │ │ │ ├── external_LLMs.py │ │ │ │ └── g4f_tokenization.py │ │ │ ├── format_checker.py │ │ │ ├── gui/ │ │ │ │ └── gui.py │ │ │ ├── manual_classification.py │ │ │ ├── news_scraper.py │ │ │ ├── proxies/ │ │ │ │ └── headers.py │ │ │ ├── requests_url.py │ │ │ ├── scrapers/ │ │ │ │ ├── __init__.py │ │ │ │ ├── cnbc/ │ │ │ │ │ └── scrape_cnbc.py │ │ │ │ ├── google/ │ │ │ │ │ └── scrape_google.py │ │ │ │ ├── market_screener/ │ │ │ │ │ └── scrape_market_screener.py │ │ │ │ ├── seeking_alpha/ │ │ │ │ │ ├── SeekingAlpha_Content.ipynb │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── seeking_alpha_scraping.py │ │ │ │ ├── selenium/ │ │ │ │ │ └── selenium_app.py │ │ │ │ ├── similarity_score.py │ │ │ │ ├── url_encode.py │ │ │ │ └── yahoo/ │ │ │ │ └── scrape_yahoo.py │ │ │ ├── sentence_processing/ │ │ │ │ └── split_sentence.py │ │ │ └── utils/ │ │ │ ├── classification_accuracy_verification.py │ │ │ ├── classify_news_sources.py │ │ │ ├── count_contexts.py │ │ │ ├── format_checker.py │ │ │ ├── manual_classification.py │ │ │ └── sentiment_classification_by_external_LLMs.py │ │ └── requirements.txt │ ├── FinGPT_Sentiment_Analysis_v1/ │ │ ├── FinGPT_v1.0/ │ │ │ ├── README.md │ │ │ ├── data_preparations/ │ │ │ │ ├── FMP/ │ │ │ │ │ ├── FMP.ipynb │ │ │ │ │ └── S&P 500 Index.xlsx │ │ │ │ ├── add_labels.py │ │ │ │ ├── download_content_demo.ipynb │ │ │ │ ├── download_contents.py │ │ │ │ ├── download_titles.py │ │ │ │ └── hs_300.csv │ │ │ ├── inferencing/ │ │ │ │ ├── cover_alpaca2jsonl.py │ │ │ │ └── infer.ipynb │ │ │ ├── making_dataset/ │ │ │ │ ├── change_jsonl_train_and_valid.sh │ │ │ │ ├── cover_alpaca2jsonl.py │ │ │ │ ├── make_dataset_by_date.ipynb │ │ │ │ ├── make_dataset_train_and_valid.sh │ │ │ │ └── tokenize_dataset_rows.py │ │ │ ├── requirements.txt │ │ │ └── training/ │ │ │ ├── finetune.py │ │ │ └── finetune.sh │ │ ├── FinGPT_v1.1/ │ │ │ └── README.md │ │ └── README.md │ ├── FinGPT_Sentiment_Analysis_v3/ │ │ ├── README.md │ │ ├── __init__.py │ │ ├── benchmark/ │ │ │ ├── benchmarks.ipynb │ │ │ └── benchmarks_llama2_13b.ipynb │ │ ├── data/ │ │ │ └── making_data.ipynb │ │ ├── training_8bit/ │ │ │ ├── train_ChatGLM2_6B.ipynb │ │ │ └── train_Llama2_13B.ipynb │ │ ├── training_int4/ │ │ │ └── train.ipynb │ │ └── training_parallel/ │ │ ├── config.json │ │ ├── train.sh │ │ └── train_lora.py │ ├── __init__.py │ └── readme.md ├── finogrid/ │ ├── README.md │ ├── agents/ │ │ ├── audit_governance/ │ │ │ └── agent.py │ │ ├── internal_support/ │ │ │ └── agent.py │ │ ├── ops_oversight/ │ │ │ └── agent.py │ │ ├── process_improvement/ │ │ │ └── agent.py │ │ └── treasury_strategy/ │ │ └── agent.py │ ├── corridors/ │ │ ├── __init__.py │ │ ├── argentina/ │ │ │ └── adapter.py │ │ ├── base.py │ │ ├── brazil/ │ │ │ └── adapter.py │ │ ├── india/ │ │ │ └── adapter.py │ │ ├── indonesia/ │ │ │ └── adapter.py │ │ ├── nigeria/ │ │ │ └── adapter.py │ │ ├── philippines/ │ │ │ └── adapter.py │ │ ├── uae/ │ │ │ └── adapter.py │ │ └── vietnam/ │ │ └── adapter.py │ ├── database/ │ │ ├── migrations/ │ │ │ ├── 001_initial_schema.sql │ │ │ ├── 002_agent_ledger.sql │ │ │ └── 003_mandate.sql │ │ └── models/ │ │ ├── __init__.py │ │ ├── agent_ledger.py │ │ ├── audit.py │ │ ├── base.py │ │ ├── batch.py │ │ ├── client.py │ │ ├── execution.py │ │ ├── instruction.py │ │ ├── mandate.py │ │ └── routing.py │ ├── docs/ │ │ ├── architecture.md │ │ ├── corridors/ │ │ │ └── nigeria.md │ │ ├── dr-runbook.md │ │ └── fingpt_usage_policy.md │ ├── fingpt_integration/ │ │ ├── __init__.py │ │ ├── forecaster/ │ │ │ └── corridor_forecaster.py │ │ ├── minimax_llm_client.py │ │ ├── rag/ │ │ │ └── knowledge_base.py │ │ └── sentiment/ │ │ ├── crypto_sentiment.py │ │ ├── minimax_provider.py │ │ └── openai_fallback.py │ ├── mcp/ │ │ ├── bridge/ │ │ │ └── server.py │ │ ├── identity/ │ │ │ └── server.py │ │ ├── kya_validator/ │ │ │ ├── __init__.py │ │ │ └── server.py │ │ ├── kyt_aml/ │ │ │ └── server.py │ │ ├── plaid/ │ │ │ ├── __init__.py │ │ │ └── server.py │ │ └── wallet_factory/ │ │ ├── __init__.py │ │ └── server.py │ ├── requirements.txt │ ├── sdk/ │ │ └── typescript/ │ │ ├── package.json │ │ ├── src/ │ │ │ ├── client.test.ts │ │ │ ├── client.ts │ │ │ ├── index.ts │ │ │ └── types.ts │ │ └── tsconfig.json │ ├── services/ │ │ ├── agent_ledger_api/ │ │ │ ├── chain_watcher.py │ │ │ ├── config.py │ │ │ ├── dependencies.py │ │ │ ├── intent_sweeper.py │ │ │ ├── main.py │ │ │ ├── middleware/ │ │ │ │ ├── __init__.py │ │ │ │ └── payment_required.py │ │ │ ├── routers/ │ │ │ │ ├── __init__.py │ │ │ │ ├── agent_accounts.py │ │ │ │ ├── health.py │ │ │ │ ├── kya.py │ │ │ │ ├── micropay.py │ │ │ │ ├── payment_intents.py │ │ │ │ ├── topup.py │ │ │ │ └── wallets.py │ │ │ └── schemas.py │ │ ├── compliance_gate/ │ │ │ └── gate.py │ │ ├── ingress_api/ │ │ │ ├── config.py │ │ │ ├── dependencies.py │ │ │ ├── main.py │ │ │ ├── routers/ │ │ │ │ ├── __init__.py │ │ │ │ ├── batches.py │ │ │ │ ├── health.py │ │ │ │ ├── onboarding.py │ │ │ │ └── webhooks.py │ │ │ └── schemas.py │ │ ├── ops_console/ │ │ │ ├── __init__.py │ │ │ ├── config.py │ │ │ ├── dependencies.py │ │ │ ├── main.py │ │ │ └── routers/ │ │ │ ├── __init__.py │ │ │ ├── agents_explorer.py │ │ │ ├── approvals.py │ │ │ ├── corridors.py │ │ │ ├── exceptions.py │ │ │ ├── ledger_explorer.py │ │ │ ├── mandates_console.py │ │ │ └── search.py │ │ ├── partner_execution/ │ │ │ ├── bridge_client.py │ │ │ └── executor.py │ │ ├── reconciliation/ │ │ │ └── reconciler.py │ │ └── routing_engine/ │ │ ├── engine.py │ │ └── worker.py │ └── tests/ │ ├── __init__.py │ ├── integration/ │ │ ├── __init__.py │ │ └── test_minimax_integration.py │ └── unit/ │ ├── __init__.py │ ├── test_agent_ledger.py │ ├── test_corridor_adapters.py │ ├── test_minimax_provider.py │ └── test_routing_engine.py ├── requirements.txt └── setup.py