生成sft数据,设置OQMD的代理,测试mars-t1
This commit is contained in:
@@ -15,7 +15,7 @@ from mars_toolkit.compute.structure_opt import optimize_crystal_structure, conve
|
||||
from mars_toolkit.query.mp_query import (
|
||||
search_material_property_from_material_project,
|
||||
get_crystal_structures_from_materials_project,
|
||||
get_mpid_from_formula
|
||||
#get_mpid_from_formula
|
||||
)
|
||||
from mars_toolkit.query.oqmd_query import fetch_chemical_composition_from_OQMD
|
||||
from mars_toolkit.query.dify_search import retrieval_from_knowledge_base
|
||||
|
||||
BIN
mars_toolkit/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/compute/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/compute/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/compute/__pycache__/material_gen.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/compute/__pycache__/material_gen.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/compute/__pycache__/property_pred.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/compute/__pycache__/property_pred.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/compute/__pycache__/structure_opt.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/compute/__pycache__/structure_opt.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/core/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/core/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/core/__pycache__/cif_utils.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/core/__pycache__/cif_utils.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/core/__pycache__/config.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/core/__pycache__/config.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/core/__pycache__/llm_tools.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/core/__pycache__/llm_tools.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/core/__pycache__/mattergen_wrapper.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/core/__pycache__/mattergen_wrapper.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
@@ -22,11 +22,11 @@ class Config:
|
||||
HTTPS_PROXY = 'http://192.168.168.1:20171'
|
||||
|
||||
# FairChem
|
||||
FAIRCHEM_MODEL_PATH = '/home/ubuntu/50T/nfs/lzy/mars-mcp/pretrained_models/fairchem_ckpt/eqV2_86M_omat_mp_salex.pt'
|
||||
FAIRCHEM_MODEL_PATH = '/home/ubuntu/sas0/lzy/mars-mcp/pretrained_models/fairchem_ckpt/eqV2_86M_omat_mp_salex.pt'
|
||||
FMAX = 0.05
|
||||
|
||||
# MatterGen
|
||||
MATTERGENMODEL_ROOT = '/home/ubuntu/50T/nfs/lzy/mars-mcp/pretrained_models/mattergen_ckpt'
|
||||
MATTERGENMODEL_ROOT = '/home/ubuntu/sas0/lzy/mars-mcp/pretrained_models/mattergen_ckpt'
|
||||
MATTERGEN_ROOT='/home/ubuntu/50T/nfs/lzy/mars-mcp/mattergen'
|
||||
MATTERGENMODEL_RESULT_PATH = 'results/'
|
||||
|
||||
|
||||
BIN
mars_toolkit/misc/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/misc/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/misc/__pycache__/misc_tools.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/misc/__pycache__/misc_tools.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/query/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/query/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/query/__pycache__/dify_search.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/query/__pycache__/dify_search.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/query/__pycache__/mp_query.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/query/__pycache__/mp_query.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/query/__pycache__/oqmd_query.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/query/__pycache__/oqmd_query.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/query/__pycache__/web_search.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/query/__pycache__/web_search.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
@@ -1,11 +1,13 @@
|
||||
import logging
|
||||
import os
|
||||
import httpx
|
||||
import pandas as pd
|
||||
from bs4 import BeautifulSoup
|
||||
from io import StringIO
|
||||
from typing import Annotated
|
||||
|
||||
from mars_toolkit.core.llm_tools import llm_tool
|
||||
from ..core import config
|
||||
from ..core.llm_tools import llm_tool
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -23,6 +25,8 @@ async def fetch_chemical_composition_from_OQMD(
|
||||
Formatted text with material information and property tables
|
||||
"""
|
||||
# Fetch data from OQMD
|
||||
os.environ['HTTP_PROXY'] = config.HTTP_PROXY or ''
|
||||
os.environ['HTTPS_PROXY'] = config.HTTPS_PROXY or ''
|
||||
url = f"https://www.oqmd.org/materials/composition/{composition}"
|
||||
try:
|
||||
async with httpx.AsyncClient(timeout=100.0) as client:
|
||||
|
||||
BIN
mars_toolkit/services/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/services/__pycache__/__init__.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
BIN
mars_toolkit/services/__pycache__/mattergen_service.cpython-310.pyc
Executable file → Normal file
BIN
mars_toolkit/services/__pycache__/mattergen_service.cpython-310.pyc
Executable file → Normal file
Binary file not shown.
Reference in New Issue
Block a user