tomasmcm / alma-7b

Source: haoranxu/ALMA-7B ✦ Quant: TheBloke/ALMA-7B-AWQ ✦ ALMA (Advanced Language Model-based trAnslator) is an LLM-based translation model

replicate.com
Total runs: 93
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Github
Model's Last Updated: November 04 2023

Introduction of alma-7b

Model Details of alma-7b

Readme

ALMA ( A dvanced L anguage M odel-based tr A nslator) is an LLM-based translation model, which adopts a new translation model paradigm: it begins with fine-tuning on monolingual data and is further optimized using high-quality parallel data. This two-step fine-tuning process ensures strong translation performance. Please find more details in our paper .

@misc{xu2023paradigm,
      title={A Paradigm Shift in Machine Translation: Boosting Translation Performance of Large Language Models}, 
      author={Haoran Xu and Young Jin Kim and Amr Sharaf and Hany Hassan Awadalla},
      year={2023},
      eprint={2309.11674},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

We release four translation models presented in the paper:

  • ALMA-7B : Full-weight Fine-tune LLaMA-2-7B on 20B monolingual tokens and then Full-weight fine-tune on human-written parallel data
  • ALMA-7B-LoRA : Full-weight Fine-tune LLaMA-2-7B on 20B monolingual tokens and then LoRA fine-tune on human-written parallel data
  • ALMA-13B : Full-weight Fine-tune LLaMA-2-7B on 12B monolingual tokens and then Full-weight fine-tune on human-written parallel data
  • ALMA-13B-LoRA (Our best system): Full-weight Fine-tune LLaMA-2-7B on 12B monolingual tokens and then LoRA fine-tune on human-written parallel data

Model checkpoints are released at huggingface:

Models Base Model Link LoRA Link
ALMA-7B haoranxu/ALMA-7B -
ALMA-7B-LoRA haoranxu/ALMA-7B-Pretrain haoranxu/ALMA-7B-Pretrain-LoRA
ALMA-13B haoranxu/ALMA-13B -
ALMA-13B-LoRA haoranxu/ALMA-13B-Pretrain haoranxu/ALMA-13B-Pretrain-LoRA

Note that ALMA-7B-Pretrain and ALMA-13B-Pretrain are NOT translation models. They only experience stage 1 monolingual fine-tuning (20B tokens for the 7B model and 12B tokens for the 13B model), and should be utilized in conjunction with their LoRA models for translation purposes.

A quick start to use our best system (ALMA-13B-LoRA) for translation. An example of translating “我爱机器翻译。” into English:

import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM
from transformers import LlamaTokenizer

# Load base model and LoRA weights
model = AutoModelForCausalLM.from_pretrained("haoranxu/ALMA-13B-Pretrain", torch_dtype=torch.float16, device_map="auto")
model = PeftModel.from_pretrained(model, "haoranxu/ALMA-13B-Pretrain-LoRA")
tokenizer = LlamaTokenizer.from_pretrained("haoranxu/ALMA-13B-Pretrain", padding_side='left')

# Add the source setence into the prompt template
prompt="Translate this from Chinese to English:\nChinese: 我爱机器翻译。\nEnglish:"
input_ids = tokenizer(prompt, return_tensors="pt", padding=True, max_length=40, truncation=True).input_ids.cuda()

# Translation
with torch.no_grad():
    generated_ids = model.generate(input_ids=input_ids, num_beams=5, max_new_tokens=20, do_sample=True, temperature=0.6, top_p=0.9)
outputs = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
print(outputs)

Please find more details in our GitHub repository

Pricing of alma-7b replicate.com

Run time and cost

This model costs approximately $0.00022 to run on Replicate, or 4545 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker .

This model runs on Nvidia T4 GPU hardware . Predictions typically complete within 1 seconds. The predict time for this model varies significantly based on the inputs.

Runs of tomasmcm alma-7b on replicate.com

93
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About alma-7b replicate.com Model

More alma-7b license Visit here:

https://huggingface.co/TheBloke/ALMA-7B-AWQ

alma-7b replicate.com

alma-7b replicate.com is an AI model on replicate.com that provides alma-7b's model effect (Source: haoranxu/ALMA-7B ✦ Quant: TheBloke/ALMA-7B-AWQ ✦ ALMA (Advanced Language Model-based trAnslator) is an LLM-based translation model), which can be used instantly with this tomasmcm alma-7b model. replicate.com supports a free trial of the alma-7b model, and also provides paid use of the alma-7b. Support call alma-7b model through api, including Node.js, Python, http.

tomasmcm alma-7b online free

alma-7b replicate.com is an online trial and call api platform, which integrates alma-7b's modeling effects, including api services, and provides a free online trial of alma-7b, you can try alma-7b online for free by clicking the link below.

tomasmcm alma-7b online free url in replicate.com:

https://replicate.com/tomasmcm/alma-7b

alma-7b install

alma-7b is an open source model from GitHub that offers a free installation service, and any user can find alma-7b on GitHub to install. At the same time, replicate.com provides the effect of alma-7b install, users can directly use alma-7b installed effect in replicate.com for debugging and trial. It also supports api for free installation.

alma-7b install url in replicate.com:

https://replicate.com/tomasmcm/alma-7b

alma-7b install url in github:

https://github.com/fe1ixxu/ALMA

Url of alma-7b

Provider of alma-7b replicate.com

Other API from tomasmcm

replicate

Source: llamas-community/LlamaGuard-7b ✦ Quant: TheBloke/LlamaGuard-7B-AWQ ✦ Llama-Guard is a 7B parameter Llama 2-based input-output safeguard model

Total runs: 541.5K
Run Growth: 0
Growth Rate: 0.00%
Updated:January 05 2024
replicate

Source: HuggingFaceH4/zephyr-7b-beta ✦ Quant: TheBloke/zephyr-7B-beta-AWQ ✦ Zephyr is a series of language models that are trained to act as helpful assistants. Zephyr-7B-β is the second model in the series

Total runs: 188.8K
Run Growth: 0
Growth Rate: 0.00%
Updated:October 29 2023
replicate

Source: berkeley-nest/Starling-LM-7B-alpha ✦ Quant: TheBloke/Starling-LM-7B-alpha-AWQ ✦ An open large language model (LLM) trained by Reinforcement Learning from AI Feedback (RLAIF)

Total runs: 57.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 30 2023
replicate

Source: kaist-ai/prometheus-13b-v1.0 ✦ Quant: TheBloke/prometheus-13B-v1.0-AWQ ✦ An alternative to GPT-4 when evaluating LLMs & Reward models for RLHF

Total runs: 54.0K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 18 2023
replicate

Source: mistralai/Mistral-7B-Instruct-v0.2 ✦ Quant: TheBloke/Mistral-7B-Instruct-v0.2-AWQ ✦ Improved instruct fine-tuned version of Mistral-7B-Instruct-v0.1

Total runs: 27.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 12 2023
replicate

Source: upstage/SOLAR-10.7B-Instruct-v1.0 ✦ Quant: TheBloke/SOLAR-10.7B-Instruct-v1.0-AWQ ✦ Elevating Performance with Upstage Depth UP Scaling!

Total runs: 4.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 15 2023
replicate

Source: umd-zhou-lab/claude2-alpaca-13B ✦ Quant: TheBloke/claude2-alpaca-13B-AWQ ✦ This model is trained by fine-tuning llama-2 with claude2 alpaca data

Total runs: 3.9K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 10 2023
replicate

Source: Pclanglais/MonadGPT ✦ Quant: TheBloke/MonadGPT-AWQ ✦ What would have happened if ChatGPT was invented in the 17th century?

Total runs: 811
Run Growth: 0
Growth Rate: 0.00%
Updated:December 07 2023
replicate

Source: Intel/neural-chat-7b-v3-1 ✦ Quant: TheBloke/neural-chat-7B-v3-1-AWQ ✦ Fine-tuned model based on mistralai/Mistral-7B-v0.1

Total runs: 773
Run Growth: 0
Growth Rate: 0.00%
Updated:November 18 2023
replicate

Source: teknium/Mistral-Trismegistus-7B ✦ Quant: TheBloke/Mistral-Trismegistus-7B-AWQ ✦ Mistral Trismegistus is a model made for people interested in the esoteric, occult, and spiritual

Total runs: 597
Run Growth: 0
Growth Rate: 0.00%
Updated:October 23 2023
replicate

Source: migtissera/Synthia-13B-v1.2 ✦ Quant: TheBloke/Synthia-13B-v1.2-AWQ ✦ SynthIA (Synthetic Intelligent Agent) is a LLama-2-13B model trained on Orca style datasets

Total runs: 589
Run Growth: 0
Growth Rate: 0.00%
Updated:October 23 2023
replicate

Source: ajibawa-2023/carl-llama-2-13b ✦ Quant: TheBloke/Carl-Llama-2-13B-AWQ ✦ Carl: A Therapist AI

Total runs: 545
Run Growth: 0
Growth Rate: 0.00%
Updated:October 23 2023
replicate

Source: gorilla-llm/gorilla-openfunctions-v1 ✦ Quant: TheBloke/gorilla-openfunctions-v1-AWQ ✦ Extend Large Language Model (LLM) Chat Completion feature to formulate executable APIs call given natural language instructions and API context

Total runs: 416
Run Growth: 0
Growth Rate: 0.00%
Updated:November 25 2023
replicate

Source: meta-math/MetaMath-Mistral-7B ✦ Quant: TheBloke/MetaMath-Mistral-7B-AWQ ✦ Bootstrap Your Own Mathematical Questions for Large Language Models

Total runs: 391
Run Growth: 0
Growth Rate: 0.00%
Updated:November 14 2023
replicate

Source: bavest/fin-llama-33b ✦ Quant: TheBloke/fin-llama-33B-AWQ ✦ Efficient Finetuning of Quantized LLMs for Finance

Total runs: 305
Run Growth: 0
Growth Rate: 0.00%
Updated:October 23 2023
replicate

Source: monology/openinstruct-mistral-7b ✦ Quant: TheBloke/openinstruct-mistral-7B-AWQ ✦ Commercially-usable 7B model, based on mistralai/Mistral-7B-v0.1 and finetuned on VMware/open-instruct

Total runs: 295
Run Growth: 0
Growth Rate: 0.00%
Updated:November 29 2023
replicate

Source: rwitz/go-bruins-v2 ✦ Quant: TheBloke/go-bruins-v2-AWQ ✦ Designed to push the boundaries of NLP applications, offering unparalleled performance in generating human-like text

Total runs: 218
Run Growth: 0
Growth Rate: 0.00%
Updated:December 10 2023
replicate

Source: Unbabel/TowerInstruct-7B-v0.1 ✦ Quant: TheBloke/TowerInstruct-7B-v0.1-AWQ ✦ This model is trained to handle several translation-related tasks, such as general machine translation, gramatical error correction, and paraphrase generation

Total runs: 188
Run Growth: 0
Growth Rate: 0.00%
Updated:January 17 2024
replicate

Source: Q-bert/MetaMath-Cybertron-Starling ✦ Quant: TheBloke/MetaMath-Cybertron-Starling-AWQ ✦ Merge Q-bert/MetaMath-Cybertron and berkeley-nest/Starling-LM-7B-alpha using slerp merge

Total runs: 182
Run Growth: 0
Growth Rate: 0.00%
Updated:December 11 2023
replicate

Source: gradientai/Llama-3-8B-Instruct-Gradient-4194k ✦ Quant: solidrust/Llama-3-8B-Instruct-Gradient-4194k-AWQ ✦ Extending LLama-3 8B's context length from 8k to 4194K

Total runs: 142
Run Growth: 0
Growth Rate: 0.00%
Updated:May 17 2024
replicate

Source: PocketDoc/Dans-AdventurousWinds-Mk2-7b ✦ Quant: TheBloke/Dans-AdventurousWinds-Mk2-7B-AWQ ✦ This model is proficient in crafting text-based adventure games

Total runs: 129
Run Growth: 0
Growth Rate: 0.00%
Updated:November 18 2023
replicate

Source: WhiteRabbitNeo/WhiteRabbitNeo-13B-v1 ✦ TheBloke/WhiteRabbitNeo-13B-AWQ ✦ WhiteRabbitNeo is a model series that can be used for offensive and defensive cybersecurity

Total runs: 116
Run Growth: 0
Growth Rate: 0.00%
Updated:January 20 2024
replicate

Source: NousResearch/Obsidian-3B-V0.5 ✦ Worlds smallest multi-modal LLM

Total runs: 116
Run Growth: 0
Growth Rate: 0.00%
Updated:November 18 2023
replicate

Source: TinyLlama/TinyLlama-1.1B-Chat-v1.0 ✦ Quant: TheBloke/TinyLlama-1.1B-Chat-v1.0-AWQ ✦ The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.

Total runs: 107
Run Growth: 0
Growth Rate: 0.00%
Updated:January 03 2024
replicate

Source: fblgit/una-cybertron-7b-v2-bf16 ✦ Quant: TheBloke/una-cybertron-7B-v2-AWQ ✦ A 7B MistralAI based model, best on it's series. Trained on SFT, DPO and UNA (Unified Neural Alignment) on multiple datasets

Total runs: 85
Run Growth: 0
Growth Rate: 0.00%
Updated:December 07 2023
replicate

Source: SuperAGI/SAM ✦ Quant: TheBloke/SAM-AWQ ✦ SAM (Small Agentic Model), a 7B model that demonstrates impressive reasoning abilities despite its smaller size

Total runs: 77
Run Growth: 0
Growth Rate: 0.00%
Updated:December 23 2023
replicate

Source: Arc53/docsgpt-7b-mistral ✦ Quant: TheBloke/docsgpt-7B-mistral-AWQ ✦ DocsGPT is optimized for Documentation (RAG), fine-tuned for providing answers that are based on context

Total runs: 74
Run Growth: 0
Growth Rate: 0.00%
Updated:December 30 2023
replicate

Source: meta-llama/Llama-2-7b-chat-hf ✦ Quant: TheBloke/Llama-2-7B-Chat-AWQ ✦ Intended for assistant-like chat

Total runs: 74
Run Growth: 0
Growth Rate: 0.00%
Updated:November 14 2023
replicate

Source: v1olet/v1olet_marcoroni-go-bruins-merge-7B ✦ Quant: TheBloke/v1olet_marcoroni-go-bruins-merge-7B-AWQ ✦ Merge AIDC-ai-business/Marcoroni-7B-v3 and rwitz/go-bruins-v2 using slerp merge

Total runs: 71
Run Growth: 0
Growth Rate: 0.00%
Updated:December 13 2023
replicate

Source: Nexusflow/NexusRaven-13B ✦ Quant: TheBloke/NexusRaven-13B-AWQ ✦ Surpassing the state-of-the-art in open-source function calling LLMs

Total runs: 53
Run Growth: 0
Growth Rate: 0.00%
Updated:November 04 2023
replicate

Source: chargoddard/loyal-piano-m7 ✦ Quant: TheBloke/loyal-piano-m7-AWQ ✦ Intended to be a roleplay-focused model with some smarts and good long-context recall

Total runs: 41
Run Growth: 0
Growth Rate: 0.00%
Updated:December 05 2023
replicate

Source: Neuronovo/neuronovo-7B-v0.3 ✦ Quant: TheBloke/neuronovo-7B-v0.3-AWQ ✦ Neuronovo/neuronovo-7B-v0.3 model represents an advanced and fine-tuned version of a large language model, initially based on CultriX/MistralTrix-v1.

Total runs: 41
Run Growth: 0
Growth Rate: 0.00%
Updated:January 12 2024
replicate

Source: fblgit/juanako-7b-UNA ✦ Quant: TheBloke/juanako-7B-UNA-AWQ ✦ juanako uses UNA, Uniform Neural Alignment. A training technique that ease alignment between transformer layers yet to be published

Total runs: 38
Run Growth: 0
Growth Rate: 0.00%
Updated:December 02 2023
replicate

Source: SciPhi/Sensei-7B-V1 ✦ Quant: TheBloke/Sensei-7B-V1-AWQ ✦ Sensei is specialized in performing RAG over detailed web search results

Total runs: 35
Run Growth: 0
Growth Rate: 0.00%
Updated:January 20 2024
replicate

Source: OpenBuddy/openbuddy-zephyr-7b-v14.1 ✦ Quant: TheBloke/openbuddy-zephyr-7B-v14.1-AWQ ✦ Open Multilingual Chatbot

Total runs: 29
Run Growth: 0
Growth Rate: 0.00%
Updated:December 18 2023
replicate

Source: TokenBender/evolvedSeeker_1_3 ✦ Quant: TheBloke/evolvedSeeker_1_3-AWQ ✦ A fine-tuned version of deepseek-ai/deepseek-coder-1.3b-base on 50k instructions for 3 epochs

Total runs: 27
Run Growth: 0
Growth Rate: 0.00%
Updated:November 28 2023
replicate

Source: Severian/ANIMA-Phi-Neptune-Mistral-7B ✦ Quant: TheBloke/ANIMA-Phi-Neptune-Mistral-7B-AWQ ✦ Biomimicry Enhanced LLM

Total runs: 20
Run Growth: 0
Growth Rate: 0.00%
Updated:November 14 2023
replicate

Source: pipizhao/Pandalyst-7B-V1.2 ✦ Quant: TheBloke/Pandalyst-7B-v1.2-AWQ ✦ Pandalyst: A large language model for mastering data analysis using pandas

Total runs: 18
Run Growth: 0
Growth Rate: 0.00%
Updated:January 05 2024
replicate

Source: pipizhao/Pandalyst_13B_V1.0 ✦ Quant: TheBloke/Pandalyst_13B_V1.0-AWQ ✦ Pandalyst: A large language model for mastering data analysis using pandas

Total runs: 18
Run Growth: 0
Growth Rate: 0.00%
Updated:January 31 2024
replicate

Source: allenai/digital-socrates-13b ✦ Quant: TheBloke/digital-socrates-13B-AWQ ✦ Digital Socrates is an open-source, automatic explanation-critiquing model

Total runs: 18
Run Growth: 0
Growth Rate: 0.00%
Updated:January 17 2024