[BUG: Using the fine-tuned Mistral-7B-v0.1 for inference, when encountering the backslash escape character '', the inference stalls, very slow, but after a few minutes, it continues generating. #229
Labels
bug
Something isn't working
Python -VV
Pip Freeze
Reproduction Steps
CUDA_VISIBLE_DEVICES=0 llamafactory-cli chat /home/dotouch/work/projects/LLaMA-Factory/zscript/inference/mistral.yaml
mistral.yaml
#model_name_or_path: /home/dotouch/work/projects/LLaMA-Factory/models/mistral_ns_demo/
model_name_or_path: /home/dotouch/work/projects/model/Mistral-7B-v0.3/
adapter_name_or_path: /home/dotouch/work/projects/LLaMA-Factory/checkpoint/mistral_ns_tmp/checkpoint-500/
#adapter_name_or_path: /home/dotouch/work/projects/LLaMA-Factory/checkpoint/mistral_ns/checkpoint-1200/
template: default
finetuning_type: lora
max_new_tokens: 12000
Expected Behavior
execute smoothly
Additional Context
example:
"interface_conf": "{"port0":{"subnet_name":"9334","pppoe_enable":0,"pppoe_id":null,"dhcp_enable":0,"mci_user_group_id":null,"mci_user_group_name":null,"server_mci_user_group_id":null,"server_mci_user_group_name":null,"server_mci_user_group_pname":null,"tunnel_srv6_client":null,"tunnel_srv6_server":null,"cinterface":"port0","access_type":null,"ip_addr_src":"172.1.1.1","ip_addr_src_end":"172.1.1.10","ip_addr_src_order":"1","ip_addr_src_step":"1","ip_addr_src_step_num":"1","lan_arp_enable":"0","ip_addr_dest":"173.1.1.1","ip_addr_dest_end":"173.1.1.1","ip_addr_dest_order":"1","ip_addr_dest_step":"1","ip_addr_dest_step_num":"1","ip_port_hop":"1","enabled_vlan":"0","enable_ipsec":"0","client_server":"client","vlan_id":null,"vlan_pri":null,"vlan_ip":null,"vlan_netmask":null,"vlan_gateway":null,"ipsec_static_type":"1","ipsec_static_count":"1","ipsec_static_local_gw":null,"ipsec_static_local_gw_netmask":null,"ipsec_static_local_gw_step":"1","ipsec_static_remote_gw":null,"ipsec_static_remote_gw_netmask":null,"ipsec_static_remote_gw_step":"1","ipsec_static_sip_start":null,"ipsec_static_sip_end":null,"ipsec_static_sip_netmask":null,"ipsec_static_sip_step":null,"ipsec_static_dip_start":null,"ipsec_static_dip_end":null,"ipsec_static_dip_netmask":null,"ipsec_static_dip_step":null,"ipsec_static_in_esp_spi":null,"ipsec_static_in_esp_iv":null,"ipsec_static_in_esp_seq_hop_num":"1","ipsec_static_in_esp_seq_repeat_cnt":"1","ipsec_static_in_esp_seq_start":"1","ipsec_static_in_enc_algo":"AES128_CBC","ipsec_static_in_enc_str":null,"ipsec_static_in_auth_algo":"HMAC_SHA1_96","ipsec_static_in_auth_str":null,"ipsec_static_in_next_header":null,"ipsec_static_in_padding_str":null,"ipsec_static_out_esp_spi":null,"ipsec_static_out_esp_iv":null,"ipsec_static_out_esp_seq_hop_num":"1","ipsec_static_out_esp_seq_repeat_cnt":"1","ipsec_static_out_esp_seq_start":"1","ipsec_static_out_enc_algo":"AES128_CBC","ipsec_static_out_enc_str":null,"ipsec_static_out_auth_algo":"HMAC_SHA1_96","ipsec_static_out_auth_str":null,"ipsec_static_out_next_header":null,"ipsec_static_out_padding_str":null,"ipsec_static_client_config_file":null,"ipsec_static_calculate_delay_type":"0","ipsec_static_calculate_delay_en_port":"port0","ipsec_static_calculate_delay_en_key_pos":null,"ipsec_static_calculate_delay_en_pci":"0000:04:00.0","ipsec_static_calculate_delay_de_port":"port1","ipsec_static_calculate_delay_de_key_pos":null,"ipsec_static_calculate_delay_de_pci":"0000:0b:00.0","gw_ver":"ipv4","ike_ver":"ikev2","kmp_dh_group":"modp1024","kmp_hash_alg":"hmac_md5","kmp_enc_alg":"3des_cbc","sm4_type":null,"kmp_auth_method":"psk","kmp_auth_rsa_padding":"pkcs1","isakmp_id_type":"fqdn","srv_isakmp_id_type":"fqdn","kmp_prf_alg":"hmac_sha1","tunnel":"1","ipsec_flow_start_interval":"0","ipsec_dpd_interval":"0","ipsec_nonce_size":"32","ipsec_frag_size":"0","send_timeout":"5","max_retransmit":"5","kmp_sa_nego_time_limit":"60","ike_lifetime":"28800","default_sport":"1025","ipsec_transform":"esp","esp_auth_alg":"hmac_sha1","esp_enc_alg":"3des_cbc","anti_replay_window":"0","ah_auth_alg":"hmac_sha1","sald_lifetime":"28800","nat_keepalive_interval":"300","nat_source_port":"4500","nat_dest_port":"4500","nat_orig_dest_port":"500","branch_access_number":"1","ike_taskgroup_interval":"1","ipsec_modify_ftp_ip":null,"ipsec_modify_ftp_user":null,"ipsec_modify_ftp_password":null,"ipsec_modify_ftp_path":null,"traffic_select_type":"1","resp_sip":[null],"resp_netmask":["24"],"initiator_sip":[null],"initiator_netmask":["24"],"traffic_select_file":null,"request_ip_enable":"1","request_internal_addr":"1","local_cert":null,"local_private":null,"local_enc_cert":null,"local_enc_private":null,"dest_cert":null,"dest_private":null,"dest_enc_cert":null,"dest_enc_private":null,"local_ca_cert":null,"dest_ca_cert":null,"xauth_username":null,"xauth_password":null,"eap_method_type":"eap_md5","eap_identity_type":"fqdn","eap_identity":null,"eap_password":null,"eap_vendor":"0","eap_dest_cert":null,"eap_dest_private":null,"eap_local_ca_cert":null,"eap_dest_ca_cert":null,"tunnel_vlan_id":null,"tunnel_vlan_pri":null,"srv6_qinq_outer_vlan_id":null,"srv6_qinq_outer_vlan_pri":null,"srv6_qinq_inner_vlan_id":null,"srv6_qinq_inner_vlan_pri":null,"vxlan_vni":null,"vxlan_local_ip":null,"vxlan_remote_ip":null,"vxlan_local_port":null,"vxlan_remote_port":null,"vxlan_smac":null,"vxlan_dmac":null,"vxlan_qinq_outer_vlan_id":null,"vxlan_qinq_outer_vlan_pri":null,"vxlan_qinq_inner_vlan_id":null,"vxlan_qinq_inner_vlan_pri":null,"gre_ip":null,"gre_netmask":null,"gre_local_ip":null,"gre_src_ip":null,"gre_keyword_verify":null,"gre_mtu":null,"gre_keepalive_cycle":null,"gre_keepalive_num":null,"udproute_local_ip":null,"udproute_remote_ip":null,"udproute_local_port":null,"udproute_remote_port":null,"dns_type":"1","dns_host_file":null,"dns_server_ip":null,"dns_standby_server_ip":null,"ipv4_tos_type":"0","ipv4_tos":"0","ipv4_tos_interval":null,"ipv4_tos2":"0","ipv4_tos_time":null,"ipv4_tos2_time":null,"mac_config_enable":"0","mac_config_prefix":null,"peer_mac_config_prefix":null,"enabled_vlan_ip":"0","ipsec_static":"0","ipsec_static_local_gw_hop":"0","ipsec_static_remote_gw_hop":"0","ipsec_static_sip_hop":"0","ipsec_static_dip_hop":"0","ipsec_static_in_esp_spi_random":"0","ipsec_static_in_esp_iv_random":"0","ipsec_static_in_enc_str_random":"0","ipsec_static_in_auth_str_random":"0","ipsec_static_in_padding_str_random":"0","ipsec_static_out_esp_spi_random":"0","ipsec_static_out_esp_iv_random":"0","ipsec_static_out_enc_str_random":"0","ipsec_static_out_auth_str_random":"0","ipsec_static_out_padding_str_random":"0","ipsec_static_calculate_delay_enable":"0","remote_access":"0","ipsec_verify_id":"0","ipsec_frag_enabled":"0","ext_sequence":"0","pfs_dh_group":"0","nat_traversal":"0","branch_access":"0","branch_access_remote_gw_jump":"0","branch_access_src_jump":"0","branch_access_dest_jump":"0","ipsec_modify_enabled":"0","ipsec_modify_python_log_enable":"0","ipsec_modify_async_enable":"0","ipsec_modify_recaculate_length":"0","ipsec_modify_padding_enable":"0","ipsec_modify_spi":"0","enabled_tunnel_vlan":"0","tunnel_srv6_enable":"0","srv6_qinq_vlan_enable":"0","vxlan_enable":"0","vxlan_frag_enable":"0","vxlan_qinq_vlan_enable":"0","enabled_gre_vpn":"0","gre_tunnel_verify":"0","enabled_gre_keepalive":"0","enabled_udproute":"0","pppoe_session":"0","eth_mpls_srv":"0","srv_isakmp_id":"ISAKMPID"}}",
Suggested Solutions
No response
The text was updated successfully, but these errors were encountered: